File: rules

package info (click to toggle)
libxcb 1.10-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, jessie-kfreebsd-proposed-updates
  • size: 3,148 kB
  • sloc: sh: 11,413; ansic: 2,878; python: 2,299; makefile: 376; perl: 85
file content (42 lines) | stat: -rwxr-xr-x 1,140 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
#!/usr/bin/make -f

# XXX make check fails with -j, so disable for now
#ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
#	NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
#	MAKEFLAGS += -j$(NUMJOBS)
#endif

DEB_BUILDDIR = build

override_dh_auto_configure:
	autoreconf -vfi
	dh_auto_configure --builddirectory=$(DEB_BUILDDIR)

%:
	dh $@ --builddirectory=$(DEB_BUILDDIR)

override_dh_strip:
	set -e; \
	for pkg in $$(grep-dctrl -n -F Section libs -s Package < debian/control); do \
		dh_strip -p $$pkg --dbg-package=$${pkg}-dbg; \
	done
	dh_strip -s --remaining-packages

override_dh_makeshlibs:
	dh_makeshlibs -plibxcb1 --add-udeb=libxcb1-udeb -V'libxcb1 (>= 1.10)' -- -c4
	dh_makeshlibs -Nlibxcb1 -V -- -c4

override_dh_installdocs: debian/copyright.debian COPYING
	cat $+ > debian/copyright
	dh_installdocs

override_dh_compress:
	dh_compress -X.png -X.html -X.map -X.css

clean:
	dh $@ --builddirectory=$(DEB_BUILDDIR)
	rm -f debian/copyright
	rm -f aclocal.m4 configure install-sh missing
	rm -f config.guess config.sub depcomp ltmain.sh src/config.h.in
	rm -f test-driver
	find -name Makefile.in -delete