50a6268d5f9f8c197aa7581acc5bce2634328af7
[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 build: build-stamp
9 build-stamp: 
10         dh_testdir      
11         ./build all
12         touch build-stamp
13
14 clean:
15         dh_testdir
16         dh_testroot
17         rm -f build-stamp 
18         rm -f splat utils/fontdata utils/citydecoder utils/usgs2sdf
19         dh_clean
20
21 install: build
22         dh_testdir
23         dh_testroot
24         dh_clean -k
25         dh_installdirs
26         cp splat $(CURDIR)/debian/splat/usr/bin
27         cp utils/citydecoder $(CURDIR)/debian/splat/usr/bin
28         cp utils/usgs2sdf $(CURDIR)/debian/splat/usr/bin
29         cp utils/srtm2sdf $(CURDIR)/debian/splat/usr/bin
30         cp utils/fontdata $(CURDIR)/debian/splat/usr/bin
31         cp docs/man/splat.man $(CURDIR)/debian/splat/usr/share/man/man1/splat.1
32
33 # Build architecture-independent files here.
34 binary-indep: build install
35
36 # Build architecture-dependent files here.
37 binary-arch: build install
38         dh_testdir
39         dh_testroot
40         dh_installdocs
41         dh_installexamples
42         dh_installmenu
43         dh_installcron
44         dh_installman
45         dh_installinfo
46         dh_installchangelogs 
47         dh_link
48         dh_strip
49         dh_compress
50         dh_fixperms
51         dh_installdeb
52         dh_shlibdeps
53         dh_gencontrol
54         dh_md5sums
55         dh_builddeb
56
57 binary: binary-indep binary-arch
58 .PHONY: build clean binary-indep binary-arch binary install