Imported Debian patch 1.1.0-1
[debian/splat] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper.
3 # GNU copyright 1997 to 1999 by Joey Hess.
4
5 # Uncomment this to turn on verbose mode.
6 #export DH_VERBOSE=1
7
8 # This is the debhelper compatibility version to use.
9 export DH_COMPAT=3
10
11 build: build-stamp
12 build-stamp: 
13         dh_testdir      
14         ./build all
15         touch build-stamp
16
17 clean:
18         dh_testdir
19         dh_testroot
20         rm -f build-stamp 
21         rm -f splat utils/fontdata utils/citydecoder utils/usgs2sdf
22         dh_clean
23
24 install: build
25         dh_testdir
26         dh_testroot
27         dh_clean -k
28         dh_installdirs
29         cp splat $(CURDIR)/debian/splat/usr/bin
30         cp utils/citydecoder $(CURDIR)/debian/splat/usr/bin
31         cp utils/usgs2sdf $(CURDIR)/debian/splat/usr/bin
32         cp utils/fontdata $(CURDIR)/debian/splat/usr/bin
33         cp docs/man/splat.man $(CURDIR)/debian/splat/usr/share/man/man1/splat.1
34
35 # Build architecture-independent files here.
36 binary-indep: build install
37
38 # Build architecture-dependent files here.
39 binary-arch: build install
40         dh_testdir
41         dh_testroot
42         dh_installdocs
43         dh_installexamples
44         dh_installmenu
45         dh_installcron
46         dh_installman
47         dh_installinfo
48 #       dh_undocumented
49         dh_installchangelogs 
50         dh_link
51         dh_strip
52         dh_compress
53         dh_fixperms
54         dh_installdeb
55         dh_shlibdeps
56         dh_gencontrol
57         dh_md5sums
58         dh_builddeb
59
60 binary: binary-indep binary-arch
61 .PHONY: build clean binary-indep binary-arch binary install