5 PKG_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)/\1/p')
7 # this target invoked by git-buildpackage using a clean hook, see .gbp.conf
9 dch -v `git describe | tr - +` "build for Debian from git"
11 git commit ChangeLog debian/changelog \
12 -m "update changelogs for Debian build"
14 configure: configure-stamp
17 ./autogen.sh --prefix=/usr
22 build-stamp: configure-stamp
24 $(MAKE) VERSION=$(PKG_VERSION)
30 rm -f build-stamp configure-stamp
31 [ ! -f Makefile ] || $(MAKE) distclean
40 $(MAKE) DESTDIR=$(CURDIR)/debian/altos install
41 install -o root -g root -m 0644 debian/altusmetrum.xpm \
42 $(CURDIR)/debian/altos/usr/share/pixmaps/altusmetrum.xpm
44 # Build architecture-independent files here.
46 # We have nothing to do by default.
48 # Build architecture-dependent files here.
52 dh_installchangelogs ChangeLog
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install configure