annotate debian/rules @ 1808:6c61c246506b

Fix a small issue with strptime strptime do not initialize all fields. So the undefined fields could end in crash later on.
author mow
date Sun, 28 Feb 2010 15:17:12 +0000
parents a310abd44894
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1538
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
1 #!/usr/bin/make -f
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
2 # -*- makefile -*-
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
3 # Sample debian/rules that uses debhelper.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
4 # This file was originally written by Joey Hess and Craig Small.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
5 # As a special exception, when this file is copied by dh-make into a
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
6 # dh-make output file, you may use that output file without restriction.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
8
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
9 # Uncomment this to turn on verbose mode.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
10 #export DH_VERBOSE=1
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
11
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
12
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
13 # These are used for cross-compiling and for saving the configure script
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
14 # from having to guess our platform (since we know it already)
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
15 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
16 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
17 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
18 CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
19 else
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
20 CROSS= --build $(DEB_BUILD_GNU_TYPE)
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
21 endif
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
22
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
23
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
24
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
25 config.status: configure
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
26 dh_testdir
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
27 # Add here commands to configure the package.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
28 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
29 cp -f /usr/share/misc/config.sub config.sub
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
30 endif
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
31 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
32 cp -f /usr/share/misc/config.guess config.guess
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
33 endif
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
34 ./autogen.sh $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-readmedir=/usr/share/doc/geeqie --with-htmldir=\$${prefix}/share/doc/geeqie/html --enable-lirc CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs -Wl,--as-needed"
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
35 #./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs -Wl,--as-needed"
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
36
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
37
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
38 build: build-stamp
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
39
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
40 build-stamp: config.status
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
41 dh_testdir
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
42
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
43 # Add here commands to compile the package.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
44 $(MAKE)
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
45 #docbook-to-man debian/geeqie.sgml > geeqie.1
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
46
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
47 touch $@
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
48
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
49 clean:
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
50 dh_testdir
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
51 dh_testroot
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
52 rm -f build-stamp
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
53
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
54 # Add here commands to clean up after the build process.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
55 [ ! -f Makefile ] || $(MAKE) distclean
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
56 rm -f config.sub config.guess
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
57
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
58 dh_clean
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
59
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
60 install: build
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
61 dh_testdir
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
62 dh_testroot
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
63 dh_clean -k
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
64 dh_installdirs
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
65
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
66 # Add here commands to install the package into debian/geeqie.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
67 $(MAKE) DESTDIR=$(CURDIR)/debian/geeqie install
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
68
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
69 rm $(CURDIR)/debian/geeqie/usr/share/doc/geeqie/COPYING \
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
70 $(CURDIR)/debian/geeqie/usr/share/doc/geeqie/ChangeLog
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
71
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
72
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
73 # Build architecture-independent files here.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
74 binary-indep: build install
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
75 # We have nothing to do by default.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
76
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
77 # Build architecture-dependent files here.
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
78 binary-arch: build install
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
79 dh_testdir
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
80 dh_testroot
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
81 dh_installchangelogs ChangeLog
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
82 dh_installdocs
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
83 # dh_install
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
84 dh_installmenu
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
85 dh_installmime
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
86 # dh_installinfo
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
87 dh_installman
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
88 dh_link
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
89 dh_strip
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
90 dh_compress --exclude=README
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
91 dh_fixperms
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
92 dh_installdeb
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
93 dh_shlibdeps
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
94 dh_gencontrol
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
95 dh_md5sums
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
96 dh_builddeb
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
97
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
98 binary: binary-indep binary-arch
a310abd44894 Adding debian packaging informations
mow
parents:
diff changeset
99 .PHONY: build clean binary-indep binary-arch binary install