-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (32 loc) · 1.17 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
41
42
# Makefile for developer use. It will probably not do what you want.
# You should probably use src/setup.py instead.
prefix=~/apps
python=$(shell readlink `which python`)
generated=src/build src/dist src/MANIFEST src/msaview_plugin_substitution_matrix/substitution_matrix.py
generated_patterns='*_wrap.*' '*.o' '*.pyc' '*.pyo' '*.so'
all:
(cd src; python setup.py build)
for extension in $$(cd src/build/lib.*; find -name '_*.so'); do \
cp src/build/lib.*/$$extension src/$$extension; \
done
install:
rm -rf ${prefix}/lib/${python}/site-packages/msaview{,_ui,_plugin_*}
(cd src; python setup.py install --prefix ${prefix})
clean:
rm -rf pack
rm -rf ${generated}
for generated_pattern in ${generated_patterns}; do \
find src -name $$generated_pattern -delete; \
done
sdist:
(cd src; rm MANIFEST; python setup.py sdist)
pack: pack-deb
pack-deb: sdist
rm -rf pack/deb
mkdir -p pack/deb
cp src/dist/msaview-*.tar.gz pack/deb
rename 's/-/_/; s/.tar.gz/.orig.tar.gz/' pack/deb/msaview-*
(cd pack/deb; tar xf msaview_*)
(cd pack/deb/*; if [ ! -e ../../../debian ]; then dh_make; else cp -r ../../../debian . ; fi )
deb: pack-deb
(cd pack/deb/msaview-*; debuild -us -uc)