summaryrefslogtreecommitdiff
path: root/veracrypt/debian/rules
blob: e96ca1b51a3487f0ca9e74f16d7a3ac7c714298c (plain)
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
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export TC_EXTRA_CFLAGS = $(CFLAGS) $(CPPFLAGS)
export TC_EXTRA_CXXFLAGS = $(CXXFLAGS) $(CPPFLAGS)
export TC_EXTRA_LFLAGS = $(LDFLAGS)

%:
	dh  $@ --sourcedirectory=src

override_dh_auto_build:
	dh_auto_build -- VERBOSE=1 NOSTRIP=1 ARCH=$(DEB_HOST_ARCH)
	unset DISPLAY && src/Main/veracrypt --text --help 2>/dev/null | perl debian/veracrypt_help_to_troff.pl > veracrypt.1

override_dh_clean:
	dh_clean veracrypt.1

override_dh_install:
	dh_install
	rm -f debian/veracrypt/usr/share/doc/veracrypt/License.txt debian/veracrypt/usr/bin/veracrypt-uninstall.sh

override_dh_installinit:
	dh_installinit --no-start -- stop 10 0 1 6 .
bgstack15