File: rules

package info (click to toggle)
libsnl 0.2.1.svn.18-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 880 kB
  • ctags: 768
  • sloc: cpp: 11,029; sh: 1,168; makefile: 58
file content (33 lines) | stat: -rwxr-xr-x 829 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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
DH_VERBOSE = 1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

INSTALL = \
debian/libsnl0.install \
debian/libsnl0.links \
debian/libsnl-dev.links

%:
	dh $@ -Dsrc
	
override_dh_install: ${INSTALL}
	dh_install

override_dh_auto_build:
	dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)"

override_dh_auto_clean:
	rm -f src/*.o src/make.dep src/libSNL.so.0.2 src/snlTest
	rm -f debian/%.install debian/%.install

debian/%.install: debian/%.install.in
	sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@
	
debian/%.links: debian/%.links.in
	sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@