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
|
#!/usr/bin/make -f
build_dir = build
install_dir = debian/tmp
%:
dh $@ --with python2
override_dh_auto_clean:
# manually clean any *.pyc files
rm -rf configshell/*.pyc
[ ! -d doc ] || rm -rf doc
override_dh_auto_build:
python setup.py build --build-base $(build_dir)
mkdir -p doc/pdf
epydoc --no-sourcecode --pdf -n configshell --exclude configobj configshell/*.py
mv pdf/api.pdf doc/pdf/configshell_API_Documentation.pdf
mkdir -p doc/html
epydoc --no-sourcecode --html -n configshell --exclude configobj configshell/*.py
mv html doc/
override_dh_auto_install:
python setup.py install --no-compile --install-purelib \
$(install_dir)/lib/ --install-scripts $(install_dir)/bin
|