| 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | |
| 4 | # Uncomment this to turn on verbose mode. |
| 5 | #export DH_VERBOSE=1 |
| 6 | |
| 7 | %: |
| 8 | dh $@ --buildsystem=pybuild |
| 9 | |
| 10 | override_dh_auto_configure: |
| 11 | # Upstream has prebuilt index.db, which does not compliance with DFSG. We rebuilt it here. |
| 12 | cat ${CURDIR}/debian/index.sql | sqlite3 ${CURDIR}/cppman/lib/index.db |
| 13 | dh_auto_configure |
| 14 | |
| 15 | override_dh_clean: |
| 16 | dh_clean ${CURDIR}/cppman/lib/index.db |
| 17 | |
| 18 | execute_after_dh_fixperms: |
| 19 | # The executable bit is cleaned during build process, so we need set |
| 20 | # them again. |
| 21 | find debian/cppman -name *.sh -print0 | xargs --null chmod a+x |
| 22 | |
| 23 | execute_after_dh_auto_install: |
| 24 | # Fix extra-license-file and changelog |
| 25 | -rm -f debian/cppman/usr/share/doc/cppman/COPYING |
| 26 | -rm -f debian/cppman/usr/share/doc/cppman/ChangeLog |