forked from demisjohn/CAMFR
-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
40 lines (35 loc) · 1.07 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
40
camfr: FORCE
python setup.py build
install:
python setup.py install
test: FORCE
cd testsuite ; make
distrib:
rm -f *.tgz Exclude
cd docs ; make pdf
rm -f -r dist ../camfr_dist camfr_dist camfr_*
mkdir ../camfr_dist
cp -r * ../camfr_dist
mv ../camfr_dist .
cd camfr_dist ; make clean
rm camfr_dist/machine_cfg.py camfr_dist/TODO
rm -r camfr_dist/visualisation/examples
rm -r camfr_dist/docs/*
cp docs/camfr.pdf camfr_dist/docs
V=`python camfrversion.py` && mv camfr_dist camfr_$${V}
V=`python camfrversion.py` && find camfr_$${V} -type d -print | egrep '/,|%$$|~$$|CVS|build' > Exclude
V=`python camfrversion.py` && find camfr_$${V} ! -type d -print | egrep '/,|%$$|\#|~$$|dblite|pyc|\.old$$|/core$$|\.orig$$' >> Exclude
V=`python camfrversion.py` && tar cvfzX camfr-$${V}.tgz Exclude camfr_$${V}
V=`python camfrversion.py` && rm -r camfr_$${V}
rm -f Exclude
FORCE:
clean:
rm -f *~ *.pyc core MANIFEST
python setup.py clean
rm -f -R build
rm -f -R dist
scons -c
cd examples ; make clean
cd visualisation ; make clean
cd testsuite ; make clean
cd docs ; make clean