File: rules

package info (click to toggle)
xorgproto 2018.4-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,112 kB
  • sloc: ansic: 28,526; sh: 3,671; makefile: 445; cpp: 397
file content (38 lines) | stat: -rwxr-xr-x 1,131 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
#!/usr/bin/make -f

PACKAGE = x11proto-dev
PKGVER = $(shell dpkg-parsechangelog -S Version)

# Build html and txt only:
override_dh_auto_configure:
	dh_auto_configure -- \
		--docdir=\$${prefix}/share/doc/$(PACKAGE) \
		--libdir=\$${prefix}/lib \
		--with-xmlto

# Install in debian/tmp to retain control through dh_install:
override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp

# Forget no-one:
override_dh_install:
	find debian/tmp/usr/share/doc/$(PACKAGE) -name '*.xml' -delete
	find debian/tmp/usr/share/doc/$(PACKAGE) -name '*.db' -delete
	find debian/tmp/usr/share/doc/$(PACKAGE) -name '*.ps' -delete

	dh_install

override_dh_missing:
	dh_missing --fail-missing

override_dh_gencontrol:
	dh_gencontrol -px11proto-bigreqs-dev   -- -v1:$(PKGVER)
	dh_gencontrol -px11proto-composite-dev -- -v1:$(PKGVER)
	dh_gencontrol -px11proto-damage-dev    -- -v1:$(PKGVER)
	dh_gencontrol -px11proto-dmx-dev       -- -v1:$(PKGVER)
	dh_gencontrol -px11proto-fixes-dev     -- -v1:$(PKGVER)
	dh_gencontrol -px11proto-render-dev    -- -v2:$(PKGVER)
	dh_gencontrol --remaining-packages

%:
	dh $@ --with quilt --builddirectory=build/