]>
Commit | Line | Data |
---|---|---|
df21ca1e MG |
1 | #!/usr/bin/make -f |
2 | # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. | |
3 | ||
4 | # Uncomment this to turn on verbose mode. | |
5 | #export DH_VERBOSE=1 | |
6 | ||
7 | build: build-arch build-indep | |
8 | build-arch: build-stamp | |
9 | build-indep: build-stamp | |
10 | ||
11 | build-stamp: | |
12 | dh_testdir | |
13 | xmkmf -a | |
14 | $(MAKE) | |
15 | touch build-stamp | |
16 | ||
17 | clean: | |
18 | dh_testdir | |
19 | dh_testroot | |
20 | rm -f build-stamp | |
21 | [ ! -f Makefile ] || $(MAKE) clean | |
22 | dh_clean Makefile | |
23 | ||
24 | # Build architecture-independent files here. | |
25 | binary-indep: build | |
26 | # We have nothing to do by default. | |
27 | ||
28 | # Build architecture-dependent files here. | |
29 | binary-arch: build | |
30 | dh_testdir | |
31 | dh_testroot | |
32 | dh_clean | |
33 | dh_installdirs | |
34 | $(MAKE) DESTDIR=debian/tmp install | |
35 | dh_install | |
36 | dh_installdocs README* | |
37 | dh_installmenu | |
38 | dh_installman xfishtank.1x | |
39 | dh_installchangelogs | |
40 | dh_strip | |
41 | dh_compress | |
42 | dh_fixperms | |
43 | dh_installdeb | |
44 | dh_shlibdeps | |
45 | dh_gencontrol | |
46 | dh_md5sums | |
47 | dh_builddeb | |
48 | ||
49 | binary: binary-indep binary-arch | |
50 | .PHONY: build clean binary-indep binary-arch binary |