-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
90 lines (69 loc) · 1.85 KB
/
Makefile
File metadata and controls
90 lines (69 loc) · 1.85 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
help:
@echo targets:
@echo ' check'
@echo ' errors'
@echo ' sdist'
@echo ' docs'
@echo ' exe'
@echo ' user_install'
@echo ' pypi'
@echo ' README.rst'
@echo ' freecode'
@echo ' sign'
@echo ' clean'
@echo ' commit.txt'
@echo ' commit'
check:
pylint valhal
errors:
pylint --errors-only valhal
ifdef PYTHON
sdist:
rm -vf MANIFEST
$(PYTHON) setup.py sdist --force-manifest --formats=zip
docs: clean
pydoctor --verbose \
--add-package valhal \
--make-html \
--html-output doc/
exe: sdist
rm -rf build/exe.*
$(PYTHON) setup.py build
user_install:
$(PYTHON) setup.py install --user --record user_install-filelist.txt
pypi:
$(PYTHON) setup.py register
else
sdist:
@echo Please supply Python executable as PYTHON=executable.
exe:
@echo Please supply Python executable as PYTHON=executable.
user_install:
@echo Please supply Python executable as PYTHON=executable.
pypi:
@echo Please supply Python executable as PYTHON=executable.
endif
README.rst: README
pandoc --output README.rst README
freecode:
@echo RETURN to submit to freecode.com using freecode-submit.txt, CTRL-C to cancel:
@read DUMMY
freecode-submit < freecode-submit.txt
sign:
rm -vf dist/*.asc
for i in dist/*.zip ; do gpg --sign --armor --detach $$i ; done
gpg --verify --multifile dist/*.asc
clean:
@echo About to remove all log files. RETURN to proceed && read DUMMY && rm -vf `find . -iname '*.log'`
rm -rvf `find . -type d -iname '__pycache__'`
rm -vf `find . -iname '*.pyc'`
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