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) --disable-gtk-update-checks --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
60 dh_gencontrol -i $(FORCEVERSION)
62 dh_builddeb --destdir=$(PKGDESTDIR) -i
64 # Build architecture-dependent files here.
65 binary-arch: build install
68 dh_install --sourcedir=debian/tmp -a
69 dh_installchangelogs -a
80 dh_gencontrol -a $(FORCEVERSION)
82 dh_builddeb -a --destdir=$(PKGDESTDIR) -- -Zbzip2
84 binary: binary-indep binary-arch
85 .PHONY: build clean binary-indep binary-arch binary install