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 -n ChangeLog debian/changelog \
13 -m "update changelogs for Debian build"
14 git tag debian/$(DEB_VERSION)
15 git push --tags origin master
17 configure: configure-stamp
20 ./autogen.sh --prefix=/usr
25 build-stamp: configure-stamp
27 $(MAKE) VERSION=$(PKG_VERSION)
33 rm -f build-stamp configure-stamp
34 [ ! -f Makefile ] || $(MAKE) distclean
43 $(MAKE) DESTDIR=$(CURDIR)/debian/altos install
44 install -o root -g root -m 0644 debian/altusmetrum.xpm \
45 $(CURDIR)/debian/altos/usr/share/pixmaps/altusmetrum.xpm
47 # Build architecture-independent files here.
49 # We have nothing to do by default.
51 # Build architecture-dependent files here.
55 dh_installchangelogs ChangeLog
82 binary: binary-indep binary-arch
83 .PHONY: build clean binary-indep binary-arch binary install configure