File: rules

package info (click to toggle)
pgpgpg 0.13-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 460 kB
  • sloc: ansic: 1,532; sh: 334; makefile: 22
file content (29 lines) | stat: -rwxr-xr-x 841 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Fix a FTCBFS. See #871456
include /usr/share/dpkg/architecture.mk
ifeq ($(origin CC),default)
CC = $(DEB_HOST_GNU_TYPE)-gcc
endif
export CC

%:
	dh $@

# Workaround to avoid a FTBFS and an inadequate use of the runstatedir option:
# configure: error: --runstatedir=/run: invalid option
execute_before_dh_clean:
	rm -f config.cache stamp-h

# Workaround to avoid a FTBFS and an inadequate use of the runstatedir option:
# configure: error: --runstatedir=/run: invalid option
execute_before_dh_auto_clean:
	if [ -e Makefile ]; then { rm -f Makefile Makefile.in; }; fi
	if [ -e pgpgpg ]; then rm -f *.o pgpgpg config.h config.log config.status stamp-h1; fi
	dh_auto_clean

override_dh_auto_configure:
	dh_auto_configure -- --with-gpg-path=/usr/bin/gpg