Rev 104 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
10 | reyssat | 1 | #!/usr/bin/make -f |
2 | # Sample debian/rules that uses debhelper. |
||
3 | # GNU copyright 1997 to 1999 by Joey Hess. |
||
4 | |||
5 | # Uncomment this to turn on verbose mode. |
||
6 | #export DH_VERBOSE=1 |
||
7 | |||
8 | ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
||
9 | CFLAGS += -g |
||
10 | endif |
||
11 | ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
||
12 | INSTALL_PROGRAM += -s |
||
13 | endif |
||
14 | |||
15 | configure: configure-stamp |
||
16 | configure-stamp: |
||
17 | dh_testdir |
||
18 | # Add here commands to configure the package. |
||
19 | |||
20 | touch configure-stamp |
||
21 | |||
22 | |||
23 | build: build-stamp |
||
24 | |||
25 | build-stamp: configure-stamp |
||
26 | dh_testdir |
||
27 | |||
28 | # Add here commands to compile the package. |
||
29 | $(MAKE) |
||
30 | #/usr/bin/docbook-to-man debian/chemeq.sgml > chemeq.1 |
||
31 | |||
32 | touch build-stamp |
||
33 | |||
34 | clean: |
||
35 | dh_testdir |
||
36 | dh_testroot |
||
37 | rm -f build-stamp configure-stamp |
||
38 | |||
39 | # Add here commands to clean up after the build process. |
||
40 | -$(MAKE) clean |
||
41 | |||
42 | dh_clean |
||
43 | |||
44 | install: build |
||
45 | dh_testdir |
||
46 | dh_testroot |
||
47 | dh_clean -k |
||
48 | dh_installdirs |
||
49 | |||
50 | # Add here commands to install the package into debian/chemeq. |
||
51 | $(MAKE) install DESTDIR=$(CURDIR)/debian/chemeq |
||
52 | |||
53 | |||
54 | # Build architecture-independent files here. |
||
55 | binary-indep: build install |
||
56 | # We have nothing to do by default. |
||
57 | |||
58 | # Build architecture-dependent files here. |
||
59 | binary-arch: build install |
||
60 | dh_testdir |
||
61 | dh_testroot |
||
62 | # dh_installdebconf |
||
63 | dh_installdocs |
||
64 | dh_installexamples |
||
65 | dh_installmenu |
||
66 | # dh_installlogrotate |
||
67 | # dh_installemacsen |
||
68 | # dh_installpam |
||
69 | # dh_installmime |
||
70 | # dh_installinit |
||
71 | dh_installcron |
||
72 | dh_installman |
||
73 | dh_installinfo |
||
74 | # dh_undocumented |
||
75 | dh_installchangelogs |
||
76 | dh_link |
||
77 | dh_strip |
||
78 | dh_compress |
||
79 | dh_fixperms |
||
80 | # dh_makeshlibs |
||
81 | dh_installdeb |
||
82 | # dh_perl |
||
83 | dh_shlibdeps |
||
84 | dh_gencontrol |
||
85 | dh_md5sums |
||
86 | dh_builddeb |
||
87 | |||
88 | binary: binary-indep binary-arch |
||
89 | .PHONY: build clean binary-indep binary-arch binary install configure |