Code

Added type_mismatch.dpatch to fix a failure to instantiate std::max().
[pkg-enblend.git] / debian / rules
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
34         
35         $(MAKE)
36         
37         touch build-stamp
39 clean: unpatch
40         dh_testdir
41         dh_testroot
42         rm -f build-stamp 
43         
44         [ ! -f Makefile ] || $(MAKE) distclean
45         
46         dh_clean 
48 install: build
49         dh_testdir
50         dh_testroot
51         dh_clean -k 
52         dh_installdirs
53         
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
64         dh_installexamples
65         dh_installman
66         dh_link
67         dh_strip
68         dh_compress
69         dh_fixperms
70         dh_installdeb
71         dh_shlibdeps
72         dh_gencontrol
73         dh_md5sums
74         dh_builddeb
76 binary: binary-indep binary-arch
77 .PHONY: build clean binary-indep binary-arch binary install