File: rules

package info (click to toggle)
tomb 2.11%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,216 kB
  • sloc: sh: 10,464; ansic: 496; python: 311; cpp: 165; makefile: 138; perl: 57; xml: 11
file content (32 lines) | stat: -rwxr-xr-x 883 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
31
32
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export PREFIX=/usr
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean --sourcedirectory=extras/kdf-keys

override_dh_auto_build:
	dh_auto_build --sourcedirectory=extras/kdf-keys

override_dh_auto_install:
	dh_auto_install
	dh_auto_install --sourcedirectory=extras/kdf-keys
	dh_auto_install --sourcedirectory=extras/cloak

# Would need network connection
override_dh_auto_test:

# If 'nodoc' is absent from DEB_BUILD_OPTIONS, create an examples directory
# holding cipher files for possible use with the cloak/uncloak commands.
# We would prefer to do this via dh-exec if it would support dh_installdocs.
ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
execute_after_dh_installdocs:
	install \
		-Dt debian/tomb/usr/share/doc/tomb/examples/cloak-ciphers \
		-m 644 extras/cloak/ciphers/*
endif