forked from fpom/snakes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (36 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
all:
@echo "Commands:"
@echo " clean delete some garbage files"
@echo " nextver increments version number"
@echo " test run tests through supported Python implementations"
@echo " lang build generated files in snakes/lang"
@echo " emacs compile Emacs files"
@echo " pip upload to PyPI"
nextver:
git diff-index --quiet HEAD --
python version.py next
git commit -a -m "version $$(cat VERSION)"
git tag -a version-$$(cat VERSION) -m "version $$(cat VERSION)"
version:
python version.py check
pip: emacs version
python setup.py sdist
. $$HOME/.config/twine/pypi.creds && twine upload -u $$USERNAME -p $$PASSWORD dist/SNAKES-$$(cat VERSION).tar.gz
emacs: utils/abcd-mode.elc
utils/abcd-mode.elc: utils/abcd-mode.el
emacs -batch -f batch-byte-compile utils/abcd-mode.el
lang:
python mklang.py
clean:
rm -f $$(find . -name ",*")
rm -f $$(find . -name "*.pyc")
rm -f $$(find . -name "*~")
rm -f $$(find . -name "*.class")
rm -rf $$(find . -type d -name __pycache__)
test:
python2.5 test.py
python2.7 test.py
python3 test.py
unladen test.py
pypy test.py
jython test.py