File: rules

package info (click to toggle)
gssproxy 0.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,460 kB
  • sloc: ansic: 19,336; python: 1,194; xml: 611; makefile: 461; sh: 184
file content (38 lines) | stat: -rwxr-xr-x 972 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

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

LDFLAGS += -Wl,--as-needed
CFLAGS += $(CPPFLAGS)

%:
	dh $@ --builddirectory build

override_dh_auto_configure:
	dh_auto_configure -- \
        --disable-static \
        --disable-rpath \
        --with-initscript=systemd \
        --with-gpp-default-behavior=REMOTE_FIRST

override_dh_auto_install:
	dh_auto_install
	rm -r `find . -name '*.la'`
	rm -r `find . -type d -name log`
	rmdir debian/gssproxy/usr/include debian/gssproxy/usr/share/doc/gssproxy/doc
	mkdir -p debian/gssproxy/usr/share/doc/gssproxy/
	cp -a docs debian/gssproxy/usr/share/doc/gssproxy/

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	cd build && $(MAKE) test_proxymech
endif

override_dh_clean:
	dh_clean
	rm -rf m4
	rm -f ABOUT-NLS config.rpath ltmain.sh
	rm -f po/Make* po/Rules-quot po/*.header po/*.sed po/*.sin