deliver firmware files too
[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 commit debian/changelog -m "update Debian changelog for build"
11
12 configure: configure-stamp
13 configure-stamp:
14         dh_testdir
15         ./autogen.sh --prefix=/usr
16         touch configure-stamp
17
18 build: build-stamp
19
20 build-stamp: configure-stamp  
21         dh_testdir
22         $(MAKE) VERSION=$(PKG_VERSION)
23         touch $@
24
25 clean: 
26         dh_testdir
27         dh_testroot
28         rm -f build-stamp configure-stamp
29         [ ! -f Makefile ] || $(MAKE) distclean
30         dh_clean 
31
32 install: build
33         dh_testdir
34         dh_testroot
35         dh_prep  
36         dh_installdirs
37
38         $(MAKE) DESTDIR=$(CURDIR)/debian/altos install
39
40 # Build architecture-independent files here.
41 binary-indep: install
42 # We have nothing to do by default.
43
44 # Build architecture-dependent files here.
45 binary-arch: install
46         dh_testdir
47         dh_testroot
48         dh_installchangelogs ChangeLog
49         dh_installdocs
50         dh_installexamples
51         dh_install
52 #       dh_installmenu
53 #       dh_installdebconf
54 #       dh_installlogrotate
55 #       dh_installemacsen
56 #       dh_installpam
57 #       dh_installmime
58 #       dh_python
59 #       dh_installinit
60 #       dh_installcron
61 #       dh_installinfo
62         dh_installman
63         dh_link
64         dh_strip
65         dh_compress
66         dh_fixperms
67 #       dh_perl
68 #       dh_makeshlibs
69         dh_installdeb
70         dh_shlibdeps
71         dh_gencontrol
72         dh_md5sums
73         dh_builddeb
74
75 binary: binary-indep binary-arch
76 .PHONY: build clean binary-indep binary-arch binary install configure