d0413e99184398efff3abc791da6124630e37847
[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         g++ -Wall -O3 -fomit-frame-pointer -ffast-math itm.cpp splat.cpp -lm -lbz2 -o splat
12         g++ -Wall -O3 -fomit-frame-pointer -ffast-math itm.cpp splat.cpp -lm -lbz2 -o splat-hd
13         (cd utils ; \
14                 cc -Wall -O3 -fomit-frame-pointer citydecoder.c -o citydecoder)
15         (cd utils ; \
16                 cc -Wall -O3 -fomit-frame-pointer usgs2sdf.c -o usgs2sdf)
17         (cd utils ; \
18                 cc -Wall -O3 -lbz2 -fomit-frame-pointer srtm2sdf.c -o srtm2sdf)
19         (cd utils ; \
20                 cc -Wall -O3 -lz -fomit-frame-pointer fontdata.c -o fontdata)
21         (cd utils ; \
22                 cc -Wall -O3 -fomit-frame-pointer -lm bearing.c -o bearing)
23         touch build-stamp
24
25 clean:
26         dh_testdir
27         dh_testroot
28         rm -f build-stamp splat splat-hd
29         rm -f utils/srtm2sdf utils/fontdata utils/citydecoder utils/usgs2sdf \
30                 utils/bearing
31         dh_clean
32
33 install: build
34         dh_testdir
35         dh_testroot
36         dh_clean -k
37         dh_installdirs
38         cp splat $(CURDIR)/debian/splat/usr/bin
39         cp splat-hd $(CURDIR)/debian/splat/usr/bin
40         cp utils/citydecoder $(CURDIR)/debian/splat/usr/bin
41         cp utils/usgs2sdf $(CURDIR)/debian/splat/usr/bin
42         cp utils/srtm2sdf $(CURDIR)/debian/splat/usr/bin
43         cp utils/fontdata $(CURDIR)/debian/splat/usr/bin
44         cp utils/bearing $(CURDIR)/debian/splat/usr/bin
45         cp docs/english/man/splat.man \
46                 $(CURDIR)/debian/splat/usr/share/man/man1/splat.1
47
48 # Build architecture-independent files here.
49 binary-indep: build install
50
51 # Build architecture-dependent files here.
52 binary-arch: build install
53         dh_testdir
54         dh_testroot
55         dh_installdocs
56         cp utils/README $(CURDIR)/debian/splat/usr/share/doc/splat/README.utils
57         dh_installexamples
58         dh_installmenu
59         dh_installcron
60         dh_installman
61         dh_installinfo
62         dh_installchangelogs 
63         dh_link
64         dh_strip
65         dh_compress
66         dh_fixperms
67         dh_installdeb
68         dh_shlibdeps
69         dh_gencontrol
70         dh_md5sums
71         dh_builddeb
72
73 binary: binary-indep binary-arch
74 .PHONY: build clean binary-indep binary-arch binary install