File: rules

package info (click to toggle)
9base 1%3A6-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,324 kB
  • sloc: ansic: 61,051; yacc: 1,991; asm: 1,621; cs: 1,150; perl: 965; makefile: 596; sh: 12; sed: 4
file content (27 lines) | stat: -rwxr-xr-x 787 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
#!/usr/bin/make -f

SHELL := sh -e

%:
	dh ${@}

override_dh_auto_build:
	dh_auto_build -- LDFLAGS="" PREFIX=/usr/lib/plan9 MANPREFIX=/usr/share/man

override_dh_auto_install:
	dh_auto_install -- DESTDIR=$(CURDIR)/debian/9base PREFIX=/usr/lib/plan9 MANPREFIX=/usr/share/man

	mv debian/9base/usr/share/man/man1/getflags.1 \
	   debian/9base/usr/share/man/man8/getflags.8
	rm -f debian/9base/usr/share/man/man1/du.1
	for MANPAGE in debian/9base/usr/share/man/man*/*; \
	do \
		mv $${MANPAGE} $$(dirname $${MANPAGE})/plan9-$$(basename $${MANPAGE}); \
	done
	find debian/9base/usr/share/man -type f -size 0b | xargs rm -f

override_dh_fixperms:
	dh_fixperms

	chmod 0755 debian/9base/usr/lib/plan9/lib/troff/font/devutf/mkMAP
	chmod 0755 debian/9base/usr/lib/plan9/lib/troff/tmac/sendcover