c9fd5fcc4b3ea64242fe35556c00999e9aa7d0b3
[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/fontdata $(CURDIR)/debian/splat/usr/bin
30         cp docs/man/splat.man $(CURDIR)/debian/splat/usr/share/man/man1/splat.1
31
32 # Build architecture-independent files here.
33 binary-indep: build install
34
35 # Build architecture-dependent files here.
36 binary-arch: build install
37         dh_testdir
38         dh_testroot
39         dh_installdocs
40         dh_installexamples
41         dh_installmenu
42         dh_installcron
43         dh_installman
44         dh_installinfo
45         dh_installchangelogs 
46         dh_link
47         dh_strip
48         dh_compress
49         dh_fixperms
50         dh_installdeb
51         dh_shlibdeps
52         dh_gencontrol
53         dh_md5sums
54         dh_builddeb
55
56 binary: binary-indep binary-arch
57 .PHONY: build clean binary-indep binary-arch binary install