File: rules

package info (click to toggle)
xplc 0.3.13-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,532 kB
  • sloc: sh: 2,739; cpp: 2,697; ansic: 1,127; makefile: 64; perl: 6
file content (44 lines) | stat: -rwxr-xr-x 1,408 bytes parent folder | download | duplicates (2)
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
44
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND = -fno-strict-aliasing
export DEB_CXXFLAGS_MAINT_APPEND = -fno-strict-aliasing

include /usr/share/dpkg/architecture.mk

# Determine the version of XPLC automatically
PKG_VERSION := $(shell awk -F, '/AC_INIT/{print $$2}' configure.ac \
		 | sed 's/[ 	]//g')

%:
	dh $@

# Make sure the install files are in the right place
execute_before_dh_auto_install:
	cp -f debian/libxplc.install debian/libxplc$(PKG_VERSION).install
	cp -f debian/libxplc-dev.install debian/libxplc$(PKG_VERSION)-dev.install
	cp -f debian/libxplc-dev.examples debian/libxplc$(PKG_VERSION)-dev.examples

# Turn symlinks into the real binary
execute_after_dh_auto_install:
	ln -f debian/tmp/usr/bin/uuidgen debian/tmp/usr/bin/uuidcdef
	ln -f debian/tmp/usr/share/man/man1/uuidgen.1 debian/tmp/usr/share/man/man1/uuidcdef

execute_after_dh_shlibdeps:
	/sbin/ldconfig -v -n debian/libxplc$(PKG_VERSION)/usr/lib/$(DEB_HOST_MULTIARCH)

execute_after_dh_auto_clean:
	rm -f debian/libxplc$(PKG_VERSION).install
	rm -f debian/libxplc$(PKG_VERSION)-dev.install
	rm -f debian/libxplc$(PKG_VERSION)-dev.examples

# Don't install the CVS/ and .cvsignore from the examples
override_dh_installexamples:
	dh_installexamples -XCVS -X.cvsignore

override_dh_installdocs:
	dh_installdocs -A CREDITS NEWS README TODO

override_dh_auto_test:
	$(MAKE) tests