078dac56cddff93a9e91161cd046e1181d255b42
[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
42 # Build architecture-independent files here.
43 binary-indep: install
44 # We have nothing to do by default.
45
46 # Build architecture-dependent files here.
47 binary-arch: install
48         dh_testdir
49         dh_testroot
50         dh_installchangelogs ChangeLog
51         dh_installdocs
52         dh_installexamples
53         dh_install
54 #       dh_installmenu
55 #       dh_installdebconf
56 #       dh_installlogrotate
57 #       dh_installemacsen
58 #       dh_installpam
59 #       dh_installmime
60 #       dh_python
61 #       dh_installinit
62 #       dh_installcron
63 #       dh_installinfo
64         dh_installman
65         dh_link
66         dh_strip
67         dh_compress
68         dh_fixperms
69 #       dh_perl
70 #       dh_makeshlibs
71         dh_installdeb
72         dh_shlibdeps
73         dh_gencontrol
74         dh_md5sums
75         dh_builddeb
76
77 binary: binary-indep binary-arch
78 .PHONY: build clean binary-indep binary-arch binary install configure