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"
10 git commit debian/changelog -m "update Debian changelog for build"
13 configure: configure-stamp
16 ./autogen.sh --prefix=/usr
21 build-stamp: configure-stamp
23 $(MAKE) VERSION=$(PKG_VERSION)
29 rm -f build-stamp configure-stamp
30 [ ! -f Makefile ] || $(MAKE) distclean
39 $(MAKE) DESTDIR=$(CURDIR)/debian/altos install
41 # Build architecture-independent files here.
43 # We have nothing to do by default.
45 # Build architecture-dependent files here.
49 dh_installchangelogs ChangeLog
76 binary: binary-indep binary-arch
77 .PHONY: build clean binary-indep binary-arch binary install configure