| 1 |
#!/usr/bin/make -f |
| 2 |
# See debhelper(7) (uncomment to enable) |
| 3 |
# output every command that modifies files on the build system. |
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
export PYBUILD_NAME=ledgerhelpers |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with python3 --buildsystem=pybuild |
| 10 |
|
| 11 |
execute_after_dh_auto_build: |
| 12 |
for f in doc/*.md; do markdown_py -f "$${f%.md}.html" "$${f}"; done |
| 13 |
|
| 14 |
execute_after_dh_auto_clean: |
| 15 |
for f in doc/*.md; do rm -f "$${f%.md}.html"; done |
| 16 |
rm -rf src/ledgerhelpers.egg-info |
| 17 |
|
| 18 |
execute_after_dh_auto_install: |
| 19 |
# No -f flag because we want to notice in case these files change location. |
| 20 |
rm debian/ledgerhelpers/usr/share/doc/ledgerhelpers/*.md |
| 21 |
# Depends on defunct web services |
| 22 |
rm debian/ledgerhelpers/usr/bin/updateprices |
| 23 |
rm debian/ledgerhelpers/usr/share/applications/updateprices.desktop |
| 24 |
|
| 25 |
bump-upstream: |
| 26 |
gbp import-orig --pristine-tar --uscan |
| 27 |
@echo Remember to update debian/changelog |
| 28 |
@echo Remember to rebase the patches, if any, with: |
| 29 |
@echo gbp pq rebase |
| 30 |
@echo gbp pq export |