annotate debian/rules @ 3:737fe869e278

minor fix in man page
author meillo@marmaro.de
date Thu, 22 Nov 2007 21:38:50 +0100 (2007-11-22)
parents 9f4fa0bc1584
children 626dacb5193e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
1 #!/usr/bin/make -f
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
2 # -*- makefile -*-
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
3 # Sample debian/rules that uses debhelper.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
4 # This file was originally written by Joey Hess and Craig Small.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
5 # As a special exception, when this file is copied by dh-make into a
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
6 # dh-make output file, you may use that output file without restriction.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
8
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
9 # Uncomment this to turn on verbose mode.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
10 #export DH_VERBOSE=1
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
11
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
12
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
13
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
14
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
15 CFLAGS = -Wall -g
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
16
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
18 CFLAGS += -O0
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
19 else
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
20 CFLAGS += -O2
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
21 endif
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
22
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
23 configure: configure-stamp
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
24 configure-stamp:
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
25 dh_testdir
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
26 # Add here commands to configure the package.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
27
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
28 touch configure-stamp
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
29
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
30
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
31 build: build-stamp
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
32
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
33 build-stamp: configure-stamp
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
34 dh_testdir
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
35
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
36 # Add here commands to compile the package.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
37 $(MAKE)
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
38 #docbook-to-man debian/genwebgallery.sgml > genwebgallery.1
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
39
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
40 touch $@
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
41
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
42 clean:
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
43 dh_testdir
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
44 dh_testroot
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
45 rm -f build-stamp configure-stamp
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
46
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
47 # Add here commands to clean up after the build process.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
48 -$(MAKE) clean
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
49
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
50 dh_clean
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
51
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
52 install: build
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
53 dh_testdir
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
54 dh_testroot
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
55 dh_clean -k
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
56 dh_installdirs
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
57
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
58 # Add here commands to install the package into debian/genwebgallery.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
59 $(MAKE) DESTDIR=$(CURDIR)/debian/genwebgallery install
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
60
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
61
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
62 # Build architecture-independent files here.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
63 binary-indep: build install
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
64 dh_testdir
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
65 dh_testroot
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
66 dh_installchangelogs
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
67 dh_installdocs
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
68 dh_installexamples
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
69 # dh_install
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
70 # dh_installmenu
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
71 # dh_installdebconf
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
72 # dh_installlogrotate
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
73 # dh_installemacsen
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
74 # dh_installpam
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
75 # dh_installmime
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
76 # dh_python
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
77 # dh_installinit
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
78 # dh_installcron
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
79 # dh_installinfo
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
80 dh_installman
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
81 dh_link
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
82 dh_strip
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
83 dh_compress
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
84 dh_fixperms
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
85 # dh_perl
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
86 # dh_makeshlibs
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
87 dh_installdeb
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
88 dh_shlibdeps
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
89 dh_gencontrol
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
90 dh_md5sums
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
91 dh_builddeb
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
92
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
93 # Build architecture-dependent files here.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
94 binary-arch: build install
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
95 # We have nothing to do by default.
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
96
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
97 binary: binary-indep binary-arch
9f4fa0bc1584 initial commit
meillo@marmaro.de
parents:
diff changeset
98 .PHONY: build clean binary-indep binary-arch binary install configure