root / synthbench / bonnie++ / debian / .svn / text-base / rules.svn-base @ 0:839f52ef7657
History | View | Annotate | Download (1.5 kB)
1 | 0:839f52ef7657 | louridas | #!/usr/bin/make -f |
---|---|---|---|
2 | 0:839f52ef7657 | louridas | # Sample debian/rules that uses debhelper. |
3 | 0:839f52ef7657 | louridas | # GNU copyright 1997 to 1999 by Joey Hess. |
4 | 0:839f52ef7657 | louridas | |
5 | 0:839f52ef7657 | louridas | # Uncomment this to turn on verbose mode. |
6 | 0:839f52ef7657 | louridas | #export DH_VERBOSE=1 |
7 | 0:839f52ef7657 | louridas | |
8 | 0:839f52ef7657 | louridas | # This is the debhelper compatability version to use. |
9 | 0:839f52ef7657 | louridas | export DH_COMPAT=4 |
10 | 0:839f52ef7657 | louridas | |
11 | 0:839f52ef7657 | louridas | build: build-stamp |
12 | 0:839f52ef7657 | louridas | build-stamp: |
13 | 0:839f52ef7657 | louridas | dh_testdir |
14 | 0:839f52ef7657 | louridas | |
15 | 0:839f52ef7657 | louridas | |
16 | 0:839f52ef7657 | louridas | # Add here commands to compile the package. |
17 | 0:839f52ef7657 | louridas | ./configure --prefix=`pwd`/debian/bonnie++/usr --mandir=`pwd`/debian/bonnie++/usr/share/man |
18 | 0:839f52ef7657 | louridas | $(MAKE) |
19 | 0:839f52ef7657 | louridas | |
20 | 0:839f52ef7657 | louridas | touch build-stamp |
21 | 0:839f52ef7657 | louridas | |
22 | 0:839f52ef7657 | louridas | clean: |
23 | 0:839f52ef7657 | louridas | dh_testdir |
24 | 0:839f52ef7657 | louridas | dh_testroot |
25 | 0:839f52ef7657 | louridas | rm -f build-stamp |
26 | 0:839f52ef7657 | louridas | |
27 | 0:839f52ef7657 | louridas | # Add here commands to clean up after the build process. |
28 | 0:839f52ef7657 | louridas | -$(MAKE) clean |
29 | 0:839f52ef7657 | louridas | rm -f config.* |
30 | 0:839f52ef7657 | louridas | |
31 | 0:839f52ef7657 | louridas | dh_clean |
32 | 0:839f52ef7657 | louridas | |
33 | 0:839f52ef7657 | louridas | install: build |
34 | 0:839f52ef7657 | louridas | dh_testdir |
35 | 0:839f52ef7657 | louridas | dh_testroot |
36 | 0:839f52ef7657 | louridas | dh_clean -k |
37 | 0:839f52ef7657 | louridas | dh_installdirs |
38 | 0:839f52ef7657 | louridas | |
39 | 0:839f52ef7657 | louridas | # Add here commands to install the package into debian/bonnie++. |
40 | 0:839f52ef7657 | louridas | $(MAKE) install-bin |
41 | 0:839f52ef7657 | louridas | ln -s bonnie++ debian/bonnie++/usr/sbin/bonnie |
42 | 0:839f52ef7657 | louridas | |
43 | 0:839f52ef7657 | louridas | touch install-stamp |
44 | 0:839f52ef7657 | louridas | |
45 | 0:839f52ef7657 | louridas | # Build architecture-independent files here. |
46 | 0:839f52ef7657 | louridas | binary-indep: build install |
47 | 0:839f52ef7657 | louridas | # We have nothing to do by default. |
48 | 0:839f52ef7657 | louridas | |
49 | 0:839f52ef7657 | louridas | # Build architecture-dependent files here. |
50 | 0:839f52ef7657 | louridas | binary-arch: build install |
51 | 0:839f52ef7657 | louridas | # dh_testversion |
52 | 0:839f52ef7657 | louridas | dh_testdir |
53 | 0:839f52ef7657 | louridas | dh_testroot |
54 | 0:839f52ef7657 | louridas | # dh_installdebconf |
55 | 0:839f52ef7657 | louridas | dh_installdocs |
56 | 0:839f52ef7657 | louridas | # dh_installexamples |
57 | 0:839f52ef7657 | louridas | # dh_installmenu |
58 | 0:839f52ef7657 | louridas | # dh_installemacsen |
59 | 0:839f52ef7657 | louridas | # dh_installpam |
60 | 0:839f52ef7657 | louridas | # dh_installinit |
61 | 0:839f52ef7657 | louridas | # dh_installcron |
62 | 0:839f52ef7657 | louridas | dh_installman *.1 *.8 |
63 | 0:839f52ef7657 | louridas | # dh_installinfo |
64 | 0:839f52ef7657 | louridas | # dh_undocumented |
65 | 0:839f52ef7657 | louridas | dh_installchangelogs |
66 | 0:839f52ef7657 | louridas | dh_strip |
67 | 0:839f52ef7657 | louridas | dh_compress |
68 | 0:839f52ef7657 | louridas | dh_fixperms |
69 | 0:839f52ef7657 | louridas | # You may want to make some executables suid here. |
70 | 0:839f52ef7657 | louridas | # dh_suidregister |
71 | 0:839f52ef7657 | louridas | # dh_makeshlibs |
72 | 0:839f52ef7657 | louridas | dh_installdeb |
73 | 0:839f52ef7657 | louridas | # dh_perl |
74 | 0:839f52ef7657 | louridas | dh_shlibdeps |
75 | 0:839f52ef7657 | louridas | dh_gencontrol |
76 | 0:839f52ef7657 | louridas | dh_md5sums |
77 | 0:839f52ef7657 | louridas | dh_builddeb |
78 | 0:839f52ef7657 | louridas | |
79 | 0:839f52ef7657 | louridas | binary: binary-indep binary-arch |
80 | 0:839f52ef7657 | louridas | .PHONY: build clean binary-indep binary-arch binary install |