1 #!/usr/bin/make -f
2 # debian/rules for enblend
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 --mandir=\$${prefix}/share/man
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
42 [ ! -f Makefile ] || $(MAKE) distclean
44 dh_clean
46 install: build
47 dh_testdir
48 dh_testroot
49 dh_clean -k
50 dh_installdirs
52 $(MAKE) DESTDIR=$(CURDIR)/debian/enblend install
54 binary-indep:
55 # nothing to do here
57 binary-arch: build install
58 dh_testdir
59 dh_testroot
60 dh_installchangelogs ChangeLog
61 dh_installdocs NEWS TODO
62 dh_installexamples
63 dh_installman
64 dh_link
65 dh_strip
66 dh_compress
67 dh_fixperms
68 dh_installdeb
69 dh_shlibdeps
70 dh_gencontrol
71 dh_md5sums
72 dh_builddeb
74 binary: binary-indep binary-arch
75 .PHONY: build clean binary-indep binary-arch binary install