blob: 20834f49dc2f60f85600d4d30fbe0d69b586be39 (
plain)
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
|
#!/usr/bin/make -f
build_dir = build
install_dir = debian/tmp
setup = /usr/bin/python ./setup.py --quiet
name = configshell
binary: binary-indep
binary-arch:
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installman
dh_install --list-missing --sourcedir $(install_dir)
dh_fixperms
dh_compress -X.py
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
install: build
dh_testdir
dh_testroot
dh_installdirs
build: build-stamp
build-stamp:
dh_testdir
$(setup) build --build-base $(build_dir) install --no-compile --install-purelib $(install_dir)/lib/configshell --install-scripts $(install_dir)/bin
echo "2.6" > $(install_dir)/lib/configshell/.version
mkdir -p $(build_dir) doc/pdf
cd $(build_dir); epydoc --no-sourcecode --pdf -n $(name) \
--exclude configobj ../$(name)/*.py
cp $(build_dir)/pdf/api.pdf doc/pdf/$(name)_API_Documentation.pdf
cd $(build_dir); epydoc --no-sourcecode --html -n $(name) \
--exclude configobj ../$(name)/*.py
sed -i "s/<\?/<!/g" $(build_dir)/html/*.html
sed -i "s/\?>/>/g" $(build_dir)/html/*.html
cp -r $(build_dir)/html doc/
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp
$(setup) clean
find . -name "*.pyc" | xargs rm -f
find . -name "*.pyo" | xargs rm -f
rm -rf $(build_dir) $(install_dir)
dh_clean
.PHONY: binary binary-indep install build clean
|