Rewriting rules file from scratch.
Daniel Baumann
15 years ago
0 | 0 | #!/usr/bin/make -f |
1 | # MAde with the aid of dh_make, by Craig Small | |
2 | # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. | |
3 | # Some lines taken from debmake, by Cristoph Lameter. | |
4 | 1 | |
5 | 2 | include /usr/share/dpatch/dpatch.make |
6 | ||
7 | # Uncomment this to turn on verbose mode. | |
8 | export DH_VERBOSE= | |
9 | ||
10 | ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | |
11 | export OPTIMIZATION_FLAGS:=-O0 | |
12 | endif | |
13 | ||
14 | build: build-stamp | |
15 | build-stamp: patch-stamp | |
16 | dh_testdir | |
17 | ||
18 | # # Add here commands to compile the package. | |
19 | ||
20 | $(MAKE) DEBUG=1 | |
21 | ||
22 | touch build-stamp | |
23 | 3 | |
24 | 4 | clean: unpatch |
25 | 5 | dh_testdir |
26 | 6 | dh_testroot |
27 | rm -f build-stamp install-stamp | |
7 | rm -f build-stamp | |
28 | 8 | |
29 | # # Add here commands to clean up after the build process. | |
30 | -$(MAKE) clean | |
9 | $(MAKE) clean | |
31 | 10 | |
32 | 11 | dh_clean |
33 | 12 | |
34 | install: install-stamp | |
35 | install-stamp: build-stamp | |
13 | build: build-stamp | |
14 | build-stamp: patch | |
15 | dh_testdir | |
16 | ||
17 | CFLAGS="$(CFLAGS)" $(MAKE) DEBUG=1 | |
18 | ||
19 | touch build-stamp | |
20 | ||
21 | install: | |
36 | 22 | dh_testdir |
37 | 23 | dh_testroot |
38 | 24 | dh_clean -k |
39 | 25 | dh_installdirs |
40 | 26 | |
41 | # # Add here commands to install the package into debian/tmp. | |
42 | $(MAKE) install-object DESTDIR=`pwd`/debian/tmp | |
27 | $(MAKE) DESTDIR=$(CURDIR)/debian/gpart install | |
43 | 28 | |
44 | touch install-stamp | |
29 | binary: binary-arch | |
45 | 30 | |
46 | # Build architecture-independent files here. | |
47 | binary-indep: build install | |
48 | # We have nothing to do by default. | |
49 | ||
50 | # Build architecture-dependent files here. | |
51 | 31 | binary-arch: build install |
52 | # dh_testversion | |
53 | 32 | dh_testdir |
54 | 33 | dh_testroot |
34 | dh_installchangelogs Changes | |
55 | 35 | dh_installdocs |
56 | # dh_installexamples | |
57 | # dh_installmenu | |
58 | # dh_installemacsen | |
59 | # dh_installinit | |
60 | # dh_installcron | |
61 | dh_installmanpages | |
62 | # dh_undocumented | |
63 | dh_installchangelogs Changes | |
64 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) | |
65 | 36 | dh_strip |
66 | endif | |
67 | 37 | dh_compress |
68 | 38 | dh_fixperms |
69 | # dh_suidregister | |
70 | 39 | dh_installdeb |
71 | 40 | dh_shlibdeps |
72 | 41 | dh_gencontrol |
73 | # dh_makeshlibs | |
74 | 42 | dh_md5sums |
75 | 43 | dh_builddeb |
76 | 44 | |
77 | source diff: | |
78 | @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false | |
45 | binary-indep: | |
79 | 46 | |
80 | binary: binary-indep binary-arch | |
81 | .PHONY: build clean binary-indep binary-arch binary | |
47 | .PHONY: clean build install binary binary-arch binary-indep |