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