File: rules

package info (click to toggle)
pmw 1%3A5.20-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,304 kB
  • sloc: ansic: 32,539; sh: 480; makefile: 386
file content (27 lines) | stat: -rwxr-xr-x 649 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/make -f

%:
	dh $@

override_dh_installman:
	rm -rf debian/pmw/usr/man
	dh_installman

override_dh_auto_clean:
	# env -i? dpkg-buildflags must die.
	[ ! -f Makefile ] || env -i $(MAKE) distclean
	$(MAKE) -C doc clean
	dh_clean

override_dh_auto_build-arch:
	$(MAKE)

# documentation uses the built binaries, so we need to compile -- but no
# need to build documentation when it's not asked for...
override_dh_auto_build-indep: override_dh_auto_build-arch
	$(MAKE) -C doc

override_dh_install-arch:
	dh_install -a
	cp -a debian/fonts.conf debian/pmw/etc/ghostscript/fontmap.d/20pmw.conf
	rm -f debian/pmw/usr/share/pmw/fontmetrics/LICENCE