Update d/rules, use dh
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Nobuhiro Iwamatsu
3 years ago
6 | 6 | # Uncomment this to turn on verbose mode. |
7 | 7 | #export DH_VERBOSE=1 |
8 | 8 | |
9 | %: | |
10 | dh $@ | |
9 | 11 | |
10 | build: build-arch build-indep | |
11 | build-arch: build-stamp | |
12 | build-indep: build-stamp | |
13 | build: build-stamp | |
14 | build-stamp: | |
15 | dh_testdir | |
16 | # Add here commands to compile the package. | |
17 | $(MAKE) GZIP="-9n" | |
18 | touch build-stamp | |
19 | ||
20 | clean: | |
21 | dh_testdir | |
22 | dh_testroot | |
23 | rm -f build-stamp install-stamp | |
24 | ||
25 | # Add here commands to clean up after the build process. | |
26 | $(MAKE) clean | |
27 | ||
28 | dh_clean | |
29 | ||
30 | install: install-stamp | |
31 | install-stamp: build-stamp | |
32 | dh_testdir | |
33 | dh_testroot | |
34 | dh_clean -k | |
35 | dh_installdirs | |
36 | ||
37 | # Add here commands to install the package into debian/tmp. | |
12 | override_dh_install: | |
38 | 13 | $(MAKE) install DESTDIR=`pwd`/debian/xfonts-marumoji |
39 | 14 | |
40 | 15 | install -m 644 debian/xfonts-marumoji.alias \ |
44 | 19 | gunzip < $$i | sed -e 's/iso88859-1/iso8859-1/' >> \ |
45 | 20 | `pwd`/debian/xfonts-marumoji/etc/X11/fonts/misc/xfonts-marumoji.alias; \ |
46 | 21 | done |
47 | touch install-stamp | |
48 | 22 | |
49 | # Build architecture-independent files here. | |
50 | # binary-indep: build install | |
51 | # We have nothing to do by default. | |
52 | ||
53 | # Build architecture-dependent files here. | |
54 | # binary-arch: build install | |
55 | binary-indep: build install | |
56 | # dh_testversion | |
57 | dh_testdir | |
58 | dh_testroot | |
59 | dh_installdocs | |
60 | dh_installxfonts | |
61 | # dh_installexamples | |
62 | # dh_installmenu | |
63 | # dh_installemacsen | |
64 | # dh_installinit | |
65 | # dh_installcron | |
66 | # dh_installmanpages | |
67 | # dh_undocumented | |
68 | dh_installchangelogs | |
69 | dh_link | |
70 | dh_strip | |
71 | dh_compress | |
72 | dh_fixperms | |
73 | # You may want to make some executables suid here | |
74 | #dh_suidregister | |
75 | # dh_makeshlibs | |
76 | dh_installdeb | |
77 | # dh_perl | |
78 | dh_shlibdeps | |
79 | dh_gencontrol | |
80 | dh_md5sums | |
81 | dh_builddeb | |
82 | ||
83 | source diff: | |
84 | @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false | |
85 | ||
86 | binary: binary-indep binary-arch | |
87 | .PHONY: build clean binary-indep binary-arch binary | |
23 | dh_install |