-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBuildfile
69 lines (50 loc) · 1.37 KB
/
Buildfile
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
include make.defs
SUBDIRS = src
detect:
@echo "Autodectected version info:"
@echo " PYTHONEXE=$(PYTHONEXE)"
@echo " PYTHONINC=$(PYTHONINC)"
@echo " PYCOMPILE=$(PYCOMPILE)"
@echo " PYPEDIR=$(PYPEDIR)"
setenv:
@echo "setenv PYTHONEXE $(PYTHONEXE)"
@echo "setenv PYPEDIR $(PYPEDIR)"
all: install docs clobber
install:
@for i in $(SUBDIRS); \
do (cd $$i ; $(MAKE) install);\
done
(cd $(PYPEDIR); \
$(PYTHONEXE) $(PYCOMPILE) -q pype || $(PYTHONEXE) $(PYCOMPILE) pype)
@./mksetup.sh $(PYPEDIR)
_reinstall:
/bin/rm -rf $(PYPEDIR)/pype $(PYPEDIR)/lib
reinstall: _reinstall install
uninstall:
/bin/rm -rf $(PYPEDIR)
buildonly:
@for i in $(SUBDIRS); \
do (cd $$i ; $(MAKE) build);\
done
(cd $(PYPEDIR); \
$(PYTHONEXE) $(PYCOMPILE) -q pype || $(PYTHONEXE) $(PYCOMPILE) pype)
p2m:
(cd src; $(MAKE) install-p2m)
pycompile:
(cd $(PYPEDIR); \
$(PYTHONEXE) $(PYCOMPILE) -q pype || $(PYTHONEXE) $(PYCOMPILE) pype)
clobber:
@find . -name core -o -name music.raw -o -name \*.pyc | xargs rm -f
@for i in $(SUBDIRS); \
do (cd $$i ; echo Cleaning $$i ... ; $(MAKE) clean);\
done
# makedocs requires epydoc (should probably switch to sphinx...)
docs: FORCE
@sh ./makedocs.sh
pushdocs: docs
git commit ./docs -m"regenerated docs" && git push
################################################################
# push to github ('origin')
push:
git push
FORCE: