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 include /usr/share/dpatch/dpatch.make
24 config.status: configure $(DPATCH_STAMPFN)
25 dh_testdir
26 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
27 --build=$(DEB_BUILD_GNU_TYPE) \
28 --prefix=/usr --mandir=\$${prefix}/share/man
30 build: build-stamp
32 build-stamp: config.status
33 dh_testdir
35 $(MAKE)
37 touch build-stamp
39 clean: unpatch
40 dh_testdir
41 dh_testroot
42 rm -f build-stamp
44 [ ! -f Makefile ] || $(MAKE) distclean
46 dh_clean
48 install: build
49 dh_testdir
50 dh_testroot
51 dh_clean -k
52 dh_installdirs
54 $(MAKE) DESTDIR=$(CURDIR)/debian/enblend install
56 binary-indep:
57 # nothing to do here
59 binary-arch: build install
60 dh_testdir
61 dh_testroot
62 dh_installchangelogs ChangeLog
63 dh_installdocs NEWS TODO AUTHORS
64 dh_installexamples
65 dh_installman
66 dh_installinfo doc/*.info
67 dh_link
68 dh_strip
69 dh_compress
70 dh_fixperms
71 dh_installdeb
72 dh_shlibdeps
73 dh_gencontrol
74 dh_md5sums
75 dh_builddeb
77 binary: binary-indep binary-arch
78 .PHONY: build clean binary-indep binary-arch binary install