File: rules

package info (click to toggle)
fpga-icestorm 0~20181109git9671b76-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 6,952 kB
  • sloc: python: 27,255; cpp: 4,560; sh: 2,286; ansic: 1,029; makefile: 618; xml: 16
file content (25 lines) | stat: -rwxr-xr-x 528 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

include /usr/share/dpkg/pkg-info.mk

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

CHANGELOG_DATE ?= $(shell LC_ALL=C date -u -d @$(SOURCE_DATE_EPOCH) +"%d %B %Y")

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	$(RM) debian/man/*.1
	$(RM) -r icebox/__pycache__

override_dh_auto_install:
	PREFIX=/usr dh_auto_install

override_dh_installman:
	cd debian/man ; CHANGELOG_DATE="$(CHANGELOG_DATE)" ./genmanpages.sh
	dh_installman