File: rules

package info (click to toggle)
dfc 3.1.1-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 392 kB
  • sloc: ansic: 3,302; makefile: 29
file content (26 lines) | stat: -rwxr-xr-x 674 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ -Scmake

override_dh_auto_configure:
	cp -v po/fr.po debian/fr.po.orig
	cp -v po/nl.po debian/nl.po.orig
	dh_auto_configure -- -DXDG_CONFIG_DIR=/usr/share/doc/dfc/examples \
	  -DSYSCONFDIR=/etc

override_dh_auto_install:
	dh_auto_install
	rm -v debian/dfc/usr/share/doc/dfc/LICENSE \
	  debian/dfc/usr/share/doc/dfc/CHANGELOG.md

override_dh_auto_clean:
	dh_auto_clean
	if [ -f debian/fr.po.orig ]; then mv -v debian/fr.po.orig po/fr.po; fi
	if [ -f debian/nl.po.orig ]; then mv -v debian/nl.po.orig po/nl.po; fi
	rm -vf po/dfc.pot