#!/usr/bin/make -f LDFLAGS+=-Wl,-z,defs -Wl,--as-needed VERSION=0.40 include /usr/share/quilt/quilt.make build: build-stamp build-stamp: $(QUILT_STAMPFN) dh build --before dh_auto_configure # update config.{sub,guess} to fix FTBFS on avr32 (#538302) cp /usr/share/misc/config.sub . cp /usr/share/misc/config.guess . dh build --before build # CFLAGS get reset during configure, pass them to make again $(MAKE) CFLAGS="$(CFLAGS)" dh build --after build touch $@ clean: unpatch dh clean dh_clean data/Makefile config.guess config.sub install: build install-stamp install-stamp: dh install $(RM) -rf $(CURDIR)/debian/gtkperf/usr/doc touch install-stamp binary-arch: install dh binary-arch binary-indep: install dh binary-indep binary: binary-arch binary-indep get-orig-source: [ -f gtkperf_$(VERSION).tar.gz ] || wget http://qa.debian.org/watch/sf.php/gtkperf/gtkperf_$(VERSION).tar.gz mkdir -p get-orig-source cd get-orig-source && tar -zxf ../gtkperf_$(VERSION).tar.gz rm -rf get-orig-source/gtkperf/debian cd get-orig-source && tar -czf ../../gtkperf_$(VERSION)+ds.orig.tar.gz gtkperf/ rm -rf gtkperf_$(VERSION).tar.gz get-orig-source