69e4d3cb3e668b80a440a07fa1a8775b8a91ea97
1 #! /usr/bin/make -f
2 # debian/rules for collection4
3 #
4 # Written by Sebastian Harl <tokkee@debian.org>
6 include /usr/share/quilt/quilt.make
8 # Uncomment this to turn on verbose mode.
9 #export DH_VERBOSE=1
11 # These are used for cross-compiling and for saving the configure script
12 # from having to guess our platform (since we know it already)
13 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
14 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16 CFLAGS = -Wall -g
18 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
19 CFLAGS += -O0
20 else
21 CFLAGS += -O2
22 endif
24 config.status: configure
25 dh_testdir
27 ./configure \
28 --host=$(DEB_HOST_GNU_TYPE) \
29 --build=$(DEB_BUILD_GNU_TYPE) \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --mandir=\$${prefix}/share/man \
33 CFLAGS="$(CFLAGS)"
35 build: build-stamp
37 build-stamp: $(QUILT_STAMPFN) config.status
38 dh_testdir
40 $(MAKE)
42 touch build-stamp
44 clean: unpatch
45 dh_testdir
46 dh_testroot
47 rm -f build-stamp
49 [ ! -f Makefile ] || $(MAKE) distclean
51 dh_clean
53 install: build
54 dh_testdir
55 dh_testroot
56 dh_prep
57 dh_installdirs
59 $(MAKE) install DESTDIR=$(CURDIR)/debian/collection4
61 mkdir -p debian/collection4/usr/lib/
62 mv debian/collection4/usr/bin/ debian/collection4/usr/lib/collection4
63 mkdir -p debian/collection4/usr/share/collection4
64 mv debian/collection4/usr/share/*.css debian/collection4/usr/share/collection4
65 mv debian/collection4/usr/share/*.js debian/collection4/usr/share/collection4
67 binary-indep: build install
68 # nothing to do here
70 binary-arch: build install
71 dh_testdir
72 dh_testroot
73 dh_installchangelogs
74 dh_installdocs -a -A AUTHORS README
75 dh_link -a
76 dh_strip -a
77 dh_compress -a
78 dh_fixperms -a
79 dh_installdeb -a
80 dh_shlibdeps -a
81 dh_gencontrol -a
82 dh_md5sums -a
83 dh_builddeb -a
85 binary: binary-indep binary-arch
86 .PHONY: build clean binary-indep binary-arch binary install