-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
191 lines (167 loc) · 5.81 KB
/
Copy pathMakefile
File metadata and controls
191 lines (167 loc) · 5.81 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
FILES = fabula/assetengine.py \
fabula/clientcoreengine.py \
fabula/coreengine.py \
fabula/eventprocessor.py \
fabula/__init__.py \
fabula/interfaces.py \
fabula/plugin.py \
fabula/presentationengine.py \
fabula/run.py \
fabula/servercoreengine.py
help:
@echo Targets:
@echo ' docs'
@echo ' check'
@echo ' errors'
@echo ' doctest'
@echo ' winxp_update'
@echo ' clean'
@echo ' user_install'
@echo ' sdist'
@echo ' exe'
@echo ' commit.txt'
@echo ' commit'
@echo ' sign'
@echo ' freecode'
@echo ' pypi'
@echo ' bitbucket'
docs: clean
pydoctor --verbose \
--add-package fabula \
--make-html \
--html-output doc/
check:
@echo WARNING: using pylint for Python 2.x instead of 3.x.
pylint fabula
errors:
@echo WARNING: using pylint for Python 2.x instead of 3.x.
pylint --errors-only fabula
ifdef PYTHON
doctest: clean
@echo --------------------------- && \
echo Testing tests/imports.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/imports.txt && \
echo --------------------------- && \
echo Testing tests/entity.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/entity.txt && \
echo --------------------------- && \
echo Testing tests/client.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/client.txt && \
echo --------------------------- && \
echo Testing tests/server.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/server.txt && \
echo --------------------------- && \
echo Testing tests/standalone.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/standalone.txt && \
echo --------------------------- && \
echo Testing tests/assets.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/assets.txt && \
echo --------------------------- && \
echo Testing tests/pygame_user_interface.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/pygame_user_interface.txt && \
echo --------------------------- && \
echo Testing tests/tiles.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/tiles.txt && \
echo --------------------------- && \
echo Testing tests/serverside_event_queue.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/serverside_event_queue.txt && \
echo --------------------------- && \
echo Testing tests/tcp_networking.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/tcp_networking.txt && \
echo --------------------------- && \
echo Testing tests/json.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/json.txt && \
echo --------------------------- && \
echo Testing tests/json_rpc.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/json_rpc.txt && \
echo --------------------------- && \
echo Testing tests/multiple_rooms.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/multiple_rooms.txt && \
echo --------------------------- && \
echo Testing tests/multiple_clients.txt && \
echo --------------------------- && \
$(PYTHON) -m doctest tests/multiple_clients.txt && \
echo Done testing. && \
echo ---------------------------
user_install:
$(PYTHON) setup.py install --user --record user_install-filelist.txt
sdist:
@# On April 14, 2011 11:34am, Xandar Kablandar (eternalcheesecake) hinted at
@# symbolic links in the .tar.bz2 file. These are stored by --formats=bztar
@# but not by --formats=zip. Since there is no setup.py option to dereference
@# symbolic links, we only use zip for the time being.
@# Filed issue 12585 at http://bugs.python.org for this.
@#
rm -fv MANIFEST
$(PYTHON) setup.py sdist --force-manifest --formats=zip
exe: sdist
rm -rf build/exe.*
$(PYTHON) setup.py build
pypi:
$(PYTHON) setup.py register
else
doctest:
@echo Please supply Python executable as PYTHON=executable.
user_install:
@echo Please supply Python executable as PYTHON=executable.
sdist:
@echo Please supply Python executable as PYTHON=executable.
exe: sdist
@echo Please supply Python executable as PYTHON=executable.
pypi:
@echo Please supply Python executable as PYTHON=executable.
endif
winxp_update: clean
mount /mnt/winxp/
rm -vrf /mnt/winxp/Documents\ and\ Settings/winxp/My\ Documents/fabula/*
cp -v -r --dereference ./COPYING \
./doc \
./fabula \
./Makefile \
./MANIFEST \
./NEWS \
./README \
./scripts \
./setup.py \
./tests \
/mnt/winxp/Documents\ and\ Settings/winxp/My\ Documents/fabula/
umount /mnt/winxp/
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 ; nano commit.txt
# First taken from the StepSim Makefile
#
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/*.zip ; 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 --force `gawk '{ ORS = " " ; print "-B " $$2 }' .hg/bookmarks` https://flberger@bitbucket.org/flberger/fabula