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) --multimaint-merge
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
24 build: build-arch build-indep
25 build-arch: build-stamp
26 build-indep: build-stamp
28 build-stamp: configure-stamp
30 $(MAKE) VERSION=$(PKG_VERSION)
37 rm -f build-stamp configure-stamp
38 [ ! -f Makefile ] || $(MAKE) distclean
47 $(MAKE) DESTDIR=$(CURDIR)/debian/altos install
48 sed -i "/dependency_libs/ s/'.*'/''/" `find debian/altos/usr/lib/altos/ -name '*.la'`
55 dh_installchangelogs ChangeLog
59 ln -s /usr/share/altos/themes/background.png \
60 debian/altos/usr/share/gdm/themes/altusmetrum/background.png
61 ln -s /usr/share/altos/themes/background.png \
62 debian/altos/usr/share/slim/themes/altusmetrum/background.png
86 binary: binary-indep binary-arch
87 .PHONY: build clean binary-indep binary-arch binary install configure