1 #!/usr/bin/make -f
2 # debian/rules for fusedav
3 #
4 # Written by Sebastian Harl <sh@tokkee.org>.
6 # Uncomment this to turn on verbose mode.
7 #export DH_VERBOSE=1
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 CFLAGS = -Wall -g
16 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17 CFLAGS += -O0
18 else
19 CFLAGS += -O2
20 endif
22 config.status: configure
23 dh_testdir
24 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
25 --build=$(DEB_BUILD_GNU_TYPE) \
26 --prefix=/usr
28 build: build-stamp
30 build-stamp: config.status
31 dh_testdir
33 $(MAKE)
35 touch build-stamp
37 clean:
38 dh_testdir
39 dh_testroot
40 rm -f build-stamp
41 rm -f config.sub config.guess
43 -$(MAKE) distclean
45 dh_clean
47 install: build
48 dh_testdir
49 dh_testroot
50 dh_clean -k
52 $(MAKE) install DESTDIR=$(CURDIR)/debian/fusedav
54 binary-indep:
55 # nothing to do here
57 binary-arch: build install
58 dh_testdir
59 dh_testroot
60 dh_installchangelogs
61 dh_installdocs README
62 dh_installman debian/fusedav.1
63 dh_link
64 dh_strip
65 dh_compress
66 dh_fixperms
67 dh_installdeb
68 dh_shlibdeps
69 dh_gencontrol
70 dh_md5sums
71 dh_builddeb
73 binary: binary-indep binary-arch
74 .PHONY: build clean binary-indep binary-arch binary install