#!/usr/bin/make -f # -*- makefile -*- # Based on debhelper sample by Joey Hess. export LC_ALL=C vercmd=dpkg-parsechangelog | grep ^Version: | cut -c 10- | sed s/\\./\\./g export DH_OPTIONS CFLAGS = -Wall -g # let's do debugging export DEB_BUILD_OPTIONS=nostrip ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O4 endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif build: dh_testdir $(MAKE) clean: dh_testdir dh_testroot $(MAKE) distclean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs cp hdrtools $(CURDIR)/debian/gimp-hdrtools/usr/lib/gimp/2.0/plug-ins # $(MAKE) install DESTDIR=$(CURDIR)/debian/gimp-hdrtools rm -rf $(CURDIR)/debian/gimp-hdrtools/usr/share/gimp-hdrtools binary-indep: build install # No architecture-independent files here. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_installman dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build build-arch build-indep clean binary-indep binary-arch binary install