File: rules

package info (click to toggle)
ivtools 1.2.10a1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,392 kB
  • sloc: cpp: 174,195; ansic: 12,709; xml: 5,359; perl: 2,164; makefile: 836; sh: 339
file content (30 lines) | stat: -rwxr-xr-x 880 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=-format
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

dh_targets=binary binary-arch binary-indep build build-arch build-indep clean install

$(dh_targets) %:
	dh $@ --with autoreconf --parallel

.PHONY: $(dh_targets)

override_dh_install:
	dh_install
	@echo prevent library files in libiv1 from being duplicated in libiv-unidraw1
	find debian/libiv1/usr/lib -type f -o -type l		\
	 | sed s:^debian/libiv1/:debian/libiv-unidraw1/:	\
	 | xargs --no-run-if-empty rm --verbose

override_dh_installexamples: debian/glyphs.tar
	dh_installexamples

debian/glyphs.tar:
	tar --create --file=$@ \
	    --exclude-backups --exclude='*.bak' \
	    --exclude=Makefile.depend --exclude='*.o' --exclude=a.out \
	    --directory=src glyphs