5 PKG_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)/\1/p')
6 DEB_VERSION := $(shell git describe | tr - +)
8 # this target invoked by git-buildpackage using a clean hook, see .gbp.conf
10 git-dch --release --new-version=$(DEB_VERSION)
12 git commit ChangeLog debian/changelog \
13 -m "update changelogs for Debian build"
14 git tag debian/$(DEB_VERSION)
16 configure: configure-stamp
19 ./autogen.sh --prefix=/usr
24 build-stamp: configure-stamp
26 $(MAKE) VERSION=$(PKG_VERSION)
32 rm -f build-stamp configure-stamp
33 [ ! -f Makefile ] || $(MAKE) distclean
42 $(MAKE) DESTDIR=$(CURDIR)/debian/altos install
43 install -o root -g root -m 0644 debian/altusmetrum.xpm \
44 $(CURDIR)/debian/altos/usr/share/pixmaps/altusmetrum.xpm
46 # Build architecture-independent files here.
48 # We have nothing to do by default.
50 # Build architecture-dependent files here.
54 dh_installchangelogs ChangeLog
81 binary: binary-indep binary-arch
82 .PHONY: build clean binary-indep binary-arch binary install configure