Imported upstream version 1.5
[manpages-zh.git] / debian / rules
blob74284bfe938104358520ec0160864231abf22c82
1 #!/usr/bin/make -f
2 package := manpages-zh
3 prefix := $(shell pwd)/debian/$(package)
4 arch := $(shell dpkg --print-architecture)
6 DESTDIR := $(prefix)/usr/share
7 CONFDIR := $(prefix)/etc
9 binary: u8 gb install
11 u8:u8-stamp
12 u8-stamp:
13 dh_testdir
14 dh_testroot
15 $(MAKE) u8
16 touch u8-stamp
17 gb:gb-stamp
18 gb-stamp:
19 dh_testdir
20 dh_testroot
21 $(MAKE) gb
22 touch gb-stamp
24 install:u8-stamp gb-stamp
25 dh_testdir
26 dh_testroot
27 dh_clean -k
28 $(MAKE) DESTDIR=$(DESTDIR) install-u8
29 $(MAKE) DESTDIR=$(DESTDIR) CONFDIR=$(CONFDIR) install-gb
30 dh_installdirs
31 dh_installdocs DOCS/* README*
32 dh_installchangelogs
33 cp -R debian/$(package)/* debian/tmp/
34 dh_link
35 dh_strip
36 dh_compress --exclude=man.macros
37 dh_fixperms
38 dh_installdeb
39 dh_gencontrol
40 dh_md5sums
41 dh_builddeb
43 clean:
44 dh_testdir
45 dh_testroot
46 dh_clean -k
47 rm -f *-stamp
48 make clean
49 dh_clean
50 rm -rf debian/$(package)
51 uninstall:
52 dh_testdir
53 dh_testroot
54 dh_clean -k
55 make DESTDIR=$(DESTDIR) CONFDIR=$(CONFDIR) uninstall