annotate debian/rules @ 939:7b170a0ed7f4

Updated Occitan translation
author ymarcheg
date Mon, 31 Dec 2007 22:01:43 +0000
parents a2ec3572dea2
children 2311d02b07bc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1 #!/usr/bin/make -f
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
2 # Sample debian/rules that uses debhelper.
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
3 # GNU copyright 1997 to 1999 by Joey Hess.
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
5 # Uncomment this to turn on verbose mode.
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6 #export DH_VERBOSE=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
8 # These are used for cross-compiling and for saving the configure script
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
9 # from having to guess our platform (since we know it already)
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
10 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
11 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
12 DEB_ARCH_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
13
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
14 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
15 CFLAGS += -g
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
16 endif
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
17 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
18 INSTALL_PROGRAM += -s
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
19 endif
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
20 ifeq ($(DEB_ARCH_GNU_TYPE), "alpha")
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
21 CFLAGS += -mieee
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
22 endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
23
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
24 config.status: configure
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
25 dh_testdir
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
26
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
27 -test -r /usr/share/misc/config.sub && \
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
28 cp -f /usr/share/misc/config.sub config.sub
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
29 -test -r /usr/share/misc/config.guess && \
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
30 cp -f /usr/share/misc/config.guess config.guess
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
31
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
32 ./configure \
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
33 --host=$(DEB_HOST_GNU_TYPE) \
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
34 --build=$(DEB_BUILD_GNU_TYPE) \
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
35 --prefix=/usr \
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
36 --mandir=\$${prefix}/share/man \
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
37 --infodir=\$${prefix}/share/info \
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
38 --enable-textport=yes
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
39
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
40 build: build-stamp
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
41 build-stamp: config.status
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
42 dh_testdir
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
43 $(MAKE)
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
44 touch build-stamp
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
45
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
46 clean: debian-clean
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
47 dh_clean
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
48
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
49 debian-clean:
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
50 dh_testdir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
51 dh_testroot
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
52 -$(MAKE) distclean
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
53 -rm -f *-stamp
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
54 -rm -f config.sub config.guess
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
55
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
56 install: build
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
57 dh_testdir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
58 dh_testroot
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
59 dh_clean -k
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
60 dh_installdirs
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
61
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
62 # Main install.
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
63 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
64
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
65 # Install icon
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
66 convert -geometry 32x32 $(CURDIR)/debian/tmp/usr/share/pixmaps/gftp.png $(CURDIR)/debian/tmp/usr/share/pixmaps/gftp.xpm
33
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 1
diff changeset
67
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
68 # Move all files in their corresponding package
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
69 dh_install --sourcedir=debian/tmp
33
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 1
diff changeset
70
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
71 # Install parse-netrc.pl
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
72 install -m 755 $(CURDIR)/docs/parse-netrc.pl $(CURDIR)/debian/gftp-common/usr/share/doc/gftp-common/examples
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
73
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
74 # Build architecture-independent files here.
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
75 binary-indep: build install
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
76 dh_testdir -i
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
77 dh_testroot -i
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
78 # dh_installdebconf
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
79 dh_installdocs -i
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
80 # dh_installexamples
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
81 # dh_installmenu
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
82 # dh_installlogrotate
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
83 # dh_installemacsen
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
84 # dh_installpam
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
85 # dh_installmime
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
86 # dh_installinit
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
87 # dh_installcron
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
88 # dh_installman
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
89 # dh_installinfo
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
90 dh_installchangelogs -i ChangeLog
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
91 dh_link -i
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
92 # dh_strip
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
93 dh_compress -i
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
94 dh_fixperms -i
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
95 # dh_makeshlibs
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
96 dh_installdeb -i
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
97 # dh_perl
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
98 # dh_shlibdeps
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
99 dh_gencontrol -i
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
100 dh_md5sums -i
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
101 dh_builddeb -i
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
102
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
103
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
104 # Build architecture-dependent files here.
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
105 binary-arch: build install
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
106 dh_testdir -a
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
107 dh_testroot -a
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
108
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
109 # Hack to remove files from the upstream tarball
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
110 -rm -f debian/dirs
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
111 -rm -f debian/docs
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
112 -rm -f debian/menu
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
113
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
114 dh_installdebconf -a
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
115 dh_installdocs -a
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
116 # dh_installexamples
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
117 dh_installmenu -a
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
118 # dh_installlogrotate
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
119 # dh_installemacsen
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
120 # dh_installpam
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
121 # dh_installmime
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
122 # dh_installinit
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
123 dh_installcron -a
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
124 dh_installman -a
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
125 dh_installinfo -a
33
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 1
diff changeset
126 dh_installchangelogs -a ChangeLog
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
127 dh_link -a
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
128 dh_strip -a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
129 dh_compress -a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
130 dh_fixperms -a
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
131 # dh_makeshlibs
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
132 dh_installdeb -a
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
133 # dh_perl
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
134 dh_shlibdeps -a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
135 dh_gencontrol -a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
136 dh_md5sums -a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
137 dh_builddeb -a
312
a2ec3572dea2 2003-11-9 Brian Masney <masneyb@gftp.org>
masneyb
parents: 231
diff changeset
138
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
139 binary: binary-indep binary-arch
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
140 .PHONY: build clean binary-indep binary-arch binary install