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

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh  $@ --sourcedirectory=src

override_dh_auto_build:
	dh_auto_build -- VERBOSE=1
	unset DISPLAY && src/Main/veracrypt --text --help 2>/dev/null | debian/veracrypt_help_to_troff.pl > veracrypt.1
	convert -resize 32x32 src/Resources/Icons/VeraCrypt-48x48.xpm veracrypt.xpm

override_dh_clean:
	dh_clean veracrypt.1 user_guide.pdf veracrypt.xpm

override_dh_install:
	cp "src/Release/Setup Files/VeraCrypt User Guide.pdf" user_guide.pdf
	dh_install

override_dh_compress:
	dh_compress -Xuser_guide.pdf

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