File: rules

package info (click to toggle)
bookworm 1.1.2%2Bgit20210715-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 10,324 kB
  • sloc: python: 5,482; xml: 222; javascript: 84; sh: 16; makefile: 11
file content (23 lines) | stat: -rwxr-xr-x 765 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk

%:
	dh $@

execute_after_dh_auto_clean:
	rm -rf debian/build obj-*

override_dh_python3:
	dh_python3 -p $(DEB_SOURCE) usr/share/com.github.babluboy.bookworm/scripts/ --shebang=/usr/bin/python3
	find $(CURDIR)/debian/ -name '*.pyc' -delete

override_dh_installman:
	#help2man --name="$(DEB_SOURCE)" -s1 -N --version-string="$(DEB_VERSION)" -o debian/com.github.babluboy.bookworm.1 $(CURDIR)/debian/bookworm/usr/bin/com.github.babluboy.bookworm
	#sed -i '/.*DEBUG.*/d' $(CURDIR)/debian/com.github.babluboy.bookworm.1
	dh_installman $(CURDIR)/debian/com.github.babluboy.bookworm.1