-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
96 lines (74 loc) · 2.13 KB
/
Makefile
File metadata and controls
96 lines (74 loc) · 2.13 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
help:
@echo Targets:
@echo ' docs'
@echo ' clean'
@echo ' pylint'
@echo ' errors'
@echo ' user_install'
@echo ' sdist'
@echo ' exe'
@echo ' commit.txt'
@echo ' commit'
@echo ' sign'
@echo ' freecode'
@echo ' pypi'
@echo ' bitbucket'
@echo ' README.rst'
@echo ' resources.zip'
docs: clean
pydoctor --verbose \
--add-package planes \
--make-html \
--html-output doc/
clean:
rm -vf `find . -iname '*.log'`
rm -rvf `find . -type d -iname '__pycache__'`
rm -vf `find . -iname '*.pyc'`
pylint:
pylint planes ; pylint examples/planes_interactive.py
errors:
pylint --errors-only planes ; pylint --errors-only examples/planes_interactive.py
ifdef PYTHON
user_install:
$(PYTHON) setup.py install --user --record user_install-filelist.txt
sdist: resources.zip
$(PYTHON) setup.py sdist --force-manifest --formats=zip
pypi:
$(PYTHON) setup.py register
exe: sdist
rm -rf build/exe.*
$(PYTHON) setup.py build
else
user_install:
@echo Please supply Python executable as PYTHON=executable.
sdist:
@echo Please supply Python executable as PYTHON=executable.
pypi:
@echo Please supply Python executable as PYTHON=executable.
exe: sdist
@echo Please supply Python executable as PYTHON=executable.
endif
commit.txt:
hg diff > commit.txt
commit: commit.txt
@echo commit.txt:
@echo ------------------------------------------------------
@cat commit.txt
@echo ------------------------------------------------------
@echo RETURN to commit using commit.txt, CTRL-C to cancel:
@read DUMMY
hg commit --logfile commit.txt && rm -v commit.txt
sign:
rm -vf dist/*.asc
for i in dist/*.*z* ; do gpg --sign --armor --detach $$i ; done
gpg --verify --multifile dist/*.asc
freecode:
@echo RETURN to submit to freecode.com using freecode-submit.txt, CTRL-C to cancel:
@read DUMMY
freecode-submit < freecode-submit.txt
bitbucket:
hg push https://flberger@bitbucket.org/flberger/planes
README.rst: README
pandoc --output README.rst README
resources.zip:
cd planes/gui/ && rm -fv resources.zip && find fonts/ gfx/ > MANIFEST && zip -9 -r resources.zip MANIFEST fonts/ gfx/