3 # This file was originally written by Joey Hess and Craig Small.
4 # As a special exception, when this file is copied by dh-make into a
5 # dh-make output file, you may use that output file without restriction.
6 # This special exception was added by Craig Small in version 0.37 of dh-make.
8 # Uncomment this to turn on verbose mode.
12 # These are used for cross-compiling and for saving the configure script
13 # from having to guess our platform (since we know it already)
14 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
15 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
17 CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
19 CROSS= --build $(DEB_BUILD_GNU_TYPE)
23 CONFIGURE = ./configure
27 $(BUILDDIR)/GNUmakefile: $(CONFIGURE)
29 unset CFLAGS; unset CPPLAGS; unset CXXLAGS; $(CONFIGURE) --prefix=/usr
31 build: $(BUILDDIR)/GNUmakefile
33 #We must build both the main project and the GTK project
34 unset CFLAGS ; unset CPPLAGS ; unset CXXLAGS; $(MAKE) -C $(BUILDDIR)
46 $(MAKE) -C $(BUILDDIR) DESTDIR=$(CURDIR)/debian/tmp install
48 # Build architecture-independent files here.
49 binary-indep: build install
52 dh_installchangelogs -i
54 dh_install --sourcedir=debian/tmp -i
61 dh_gencontrol -i $(FORCEVERSION)
63 dh_builddeb --destdir=$(PKGDESTDIR) -i
65 # Build architecture-dependent files here.
66 binary-arch: build install
69 dh_install --sourcedir=debian/tmp -a
70 dh_installchangelogs -a
82 dh_gencontrol -a $(FORCEVERSION)
84 dh_builddeb -a --destdir=$(PKGDESTDIR) -- -Zbzip2
86 binary: binary-indep binary-arch
87 .PHONY: build clean binary-indep binary-arch binary install