File: rules

package info (click to toggle)
nn 6.7.3-12
  • links: PTS
  • area: main
  • in suites: sid
  • size: 3,524 kB
  • sloc: ansic: 32,031; sh: 1,491; awk: 138; makefile: 77
file content (39 lines) | stat: -rwxr-xr-x 949 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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
export DH_VERBOSE = 1

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

%:
	dh $@

override_dh_auto_configure:
	cp -f debian/config.h .

override_dh_auto_build:
	dh_auto_build -- \
		CFLAGS="$(CFLAGS)" \
                LDFLAGS="$(LDFLAGS)" \
                LOCALCC=$(CC_FOR_BUILD)

override_dh_clean:
	dh_clean
	debconf-updatepo

override_dh_auto_clean:
	cp -f debian/config.h .
	dh_auto_clean
	rm config.h

override_dh_auto_install:
	dh_auto_install
	DESTDIR=$(CURDIR)/debian/nn ./inst n
	rm $(CURDIR)/debian/nn/usr/share/man/man1/nnacct.1m
	rm $(CURDIR)/debian/nn/usr/share/man/man8/nnmaster.8
	rm $(CURDIR)/debian/nn/usr/share/man/man8/nnspew.8
	rmdir $(CURDIR)/debian/nn/usr/share/man/man8