File: rules

package info (click to toggle)
openconnect 6.00-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,680 kB
  • ctags: 1,456
  • sloc: ansic: 15,051; sh: 11,811; xml: 1,125; makefile: 538; java: 378; python: 185
file content (43 lines) | stat: -rwxr-xr-x 1,236 bytes parent folder | download
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
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make -f

AUTORECONF_SOURCES = aclocal.m4 config.guess config.sub configure ltmain.sh \
		     missing Makefile.in po/Makefile.in www/Makefile.in \
		     www/images/Makefile.in www/inc/Makefile.in \
		     www/styles/Makefile.in
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export V = 1

%:
	dh $@ --with autoreconf --list-missing

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-static \
		--with-gnutls \
		--htmldir=/usr/share/doc/openconnect/html \
		--with-system-cafile=/etc/ssl/certs/ca-certificates.crt \
		--with-vpnc-script=/usr/share/vpnc-scripts/vpnc-script
	# Do not let version.c get rebuilt from our git repo
	touch version.c

override_dh_installchangelogs:
	dh_installchangelogs www/changelog.html

override_dh_compress:
	dh_compress -Xhtml/changelog.html

override_dh_strip:
	dh_strip -plibopenconnect3 --dbg-package=libopenconnect3-dbg
	dh_strip -popenconnect --dbg-package=openconnect-dbg

override_dh_autoreconf:
	for f in $(AUTORECONF_SOURCES); do \
		[ -f $$f.debian-backup ] || mv $$f $$f.debian-backup; \
	done
	dh_autoreconf

override_dh_autoreconf_clean:
	dh_autoreconf_clean
	for f in $(AUTORECONF_SOURCES); do \
		[ ! -f $$f.debian-backup ] || mv $$f.debian-backup $$f; \
	done