Update usage and man page for ao-postflight
[fw/altos] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 export DH_VERBOSE=1
5 PKG_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)/\1/p')
6
7 # this target invoked by git-buildpackage using a clean hook, see .gbp.conf
8 prebuild:
9         dch -v `git describe | tr - +` "build for Debian from git"
10         git log > ChangeLog
11         git commit ChangeLog debian/changelog \
12                 -m "update changelogs for Debian build"
13
14 configure: configure-stamp
15 configure-stamp:
16         dh_testdir
17         ./autogen.sh --prefix=/usr
18         touch configure-stamp
19
20 build: build-stamp
21
22 build-stamp: configure-stamp  
23         dh_testdir
24         $(MAKE) VERSION=$(PKG_VERSION)
25         touch $@
26
27 clean: 
28         dh_testdir
29         dh_testroot
30         rm -f build-stamp configure-stamp
31         [ ! -f Makefile ] || $(MAKE) distclean
32         dh_clean 
33
34 install: build
35         dh_testdir
36         dh_testroot
37         dh_prep  
38         dh_installdirs
39
40         $(MAKE) DESTDIR=$(CURDIR)/debian/altos install
41         install -o root -g root -m 0644 debian/altusmetrum.xpm \
42                 $(CURDIR)/debian/altos/usr/share/pixmaps/altusmetrum.xpm
43
44 # Build architecture-independent files here.
45 binary-indep: install
46 # We have nothing to do by default.
47
48 # Build architecture-dependent files here.
49 binary-arch: install
50         dh_testdir
51         dh_testroot
52         dh_installchangelogs ChangeLog
53         dh_installdocs
54         dh_installexamples
55         dh_install
56         dh_installmenu
57 #       dh_installdebconf
58 #       dh_installlogrotate
59 #       dh_installemacsen
60 #       dh_installpam
61 #       dh_installmime
62 #       dh_python
63 #       dh_installinit
64 #       dh_installcron
65 #       dh_installinfo
66         dh_installman
67         dh_link
68         dh_strip
69         dh_compress
70         dh_fixperms
71 #       dh_perl
72 #       dh_makeshlibs
73         dh_installdeb
74         dh_shlibdeps
75         dh_gencontrol
76         dh_md5sums
77         dh_builddeb
78
79 binary: binary-indep binary-arch
80 .PHONY: build clean binary-indep binary-arch binary install configure