File: rules

package info (click to toggle)
xtide-data 20040203-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 5,764 kB
  • ctags: 1
  • sloc: makefile: 31; perl: 30; sh: 9
file content (46 lines) | stat: -rwxr-xr-x 977 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This is the debhelper compatability version to use.
export DH_COMPAT=4

build: 

clean:
	dh_testdir
	dh_testroot
	dh_clean
	-rm h.txt offsets.xml harmonics.tcd

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	install -d  debian/xtide-data/usr/share/xtide
	perl debian/filter-harmonics.pl harmonics.txt > h.txt
	gunzip -c offsets-*.xml.gz > offsets.xml
	build_tide_db harmonics.tcd h.txt offsets.xml
	install -m 644 harmonics.tcd debian/xtide-data/usr/share/xtide/

binary-arch:

# Build architecture-independent files here.
binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs 
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install