forked from dewitters/MysticMine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
39 lines (32 loc) · 1.01 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
# (C)2012 Lukas Czerner <[email protected]>
all:
rm -f monorail/ai.c monorail/ai.so
rm -rf monorail/data
@python2 setup.py build_ext --inplace
ln -s $(CURDIR)/data/800x600/ monorail/data
help:
@echo "Usage: make <target>"
@echo
@echo "Available targets are:"
@echo " help show this text"
@echo " clean remove python bytecode and temp files"
@echo " git-clean remove all files outside git tree"
@echo " install install program on current system"
@echo " source create source tarball"
@echo " rebuild-all rebuild everything including all assets"
clean:
@python2 setup.py clean
rm -f MANIFEST
rm -f monorail/ai.c monorail/ai.so
rm -rf monorail/data
rm -rf assets/tmp
find . -\( -name "*.pyc" -o -name '*.pyo' -o -name "*~" -\) -delete
git-clean:
git clean -f
install:
@python2 setup.py install
source: clean
@python2 setup.py sdist
rebuild-all: clean
@python2 setup.py build_ext --inplace
@python2 build.py