File: rules

package info (click to toggle)
manpages-posix 1.67-3
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 9,564 kB
  • ctags: 6
  • sloc: makefile: 69; sh: 37
file content (47 lines) | stat: -rwxr-xr-x 870 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
43
44
45
46
47
#! /usr/bin/make -f

export DH_COMPAT=2

PKGNAME=manpages-posix

build:
# Builds the binary package.
# empty

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp install-stamp
	-rm -rf *~ *.orig "#*" debian/$(PKGNAME) debian/$(PKGNAME)-dev debian/*~ debian/files*
	-find man? -name '*~' -exec rm {} \;
	dh_clean

binary-arch: build
	dh_testdir
	dh_testroot

binary-indep: build
# Makes a binary package.
	dh_clean
	dh_testdir
	dh_testroot
	dh_installdirs -A /usr/share/man
	dh_installdocs *.Announce 
	dh_installchangelogs

	# manpages-dev has no docs dir
	rm -rf debian/$(PKGNAME)-dev/usr/share/doc/$(PKGNAME)-dev
	ln -s $(PKGNAME) debian/$(PKGNAME)-dev/usr/share/doc/$(PKGNAME)-dev

	/bin/bash debian/inst

	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean