5 PKG_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)/\1/p')
6 DEB_VERSION := $(shell if [ -x /usr/bin/git ]; then git describe; else echo 0; fi | tr - +)
8 # this target invoked by git-buildpackage using a clean hook, see .gbp.conf
11 git-dch --release --new-version=$(DEB_VERSION)
13 git commit -n ChangeLog debian/changelog \
14 -m "update changelogs for Debian build"
15 git tag debian/$(DEB_VERSION)
16 git push --tags origin master
18 configure: configure-stamp
21 ./autogen.sh --prefix=/usr
26 build-stamp: configure-stamp
28 $(MAKE) VERSION=$(PKG_VERSION)
35 rm -f build-stamp configure-stamp
36 [ ! -f Makefile ] || $(MAKE) distclean
45 $(MAKE) DESTDIR=$(CURDIR)/debian/altos install
46 install -o root -g root -m 0644 debian/altusmetrum.xpm \
47 $(CURDIR)/debian/altos/usr/share/pixmaps/altusmetrum.xpm
49 # Build architecture-independent files here.
51 # We have nothing to do by default.
53 # Build architecture-dependent files here.
57 dh_installchangelogs ChangeLog
84 binary: binary-indep binary-arch
85 .PHONY: build clean binary-indep binary-arch binary install configure