File: rules

package info (click to toggle)
ledgerhelpers 0.3.10-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 616 kB
  • sloc: python: 3,783; makefile: 18
file content (30 lines) | stat: -rwxr-xr-x 955 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

export PYBUILD_NAME=ledgerhelpers

%:
	dh $@ --with python3 --buildsystem=pybuild

execute_after_dh_auto_build:
	for f in doc/*.md; do markdown_py -f "$${f%.md}.html" "$${f}"; done

execute_after_dh_auto_clean:
	for f in doc/*.md; do rm -f "$${f%.md}.html"; done
	rm -rf src/ledgerhelpers.egg-info

execute_after_dh_auto_install:
# No -f flag because we want to notice in case these files change location.
	rm debian/ledgerhelpers/usr/share/doc/ledgerhelpers/*.md
# Depends on defunct web services
	rm debian/ledgerhelpers/usr/bin/updateprices
	rm debian/ledgerhelpers/usr/share/applications/updateprices.desktop

bump-upstream:
	gbp import-orig --pristine-tar --uscan
	@echo Remember to update debian/changelog
	@echo Remember to rebase the patches, if any, with:
	@echo gbp pq rebase
	@echo gbp pq export