File: rules

package info (click to toggle)
gworldclock 1.4.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 980 kB
  • ctags: 158
  • sloc: sh: 3,855; ansic: 2,228; makefile: 68; sed: 16
file content (81 lines) | stat: -rwxr-xr-x 2,006 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/make -f
# 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: build-stamp
build-stamp:
	dh_testdir

	./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
	# Add here commands to compile the package.
	#$(MAKE)

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-rm po/*.gmo po/stamp-po

	# Add here commands to clean up after the build process.
	-$(MAKE) clean
	-$(MAKE) distclean

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs -pgworldclock
	$(MAKE)
	$(MAKE) install DESTDIR=`pwd`/debian/tmp/

# Build architecture-independent files here.
binary-indep: 
	dh_testdir
	dh_testroot
	dh_installdirs -ptzwatch usr/bin
	# build hasn't been done yet, so just copy 
	# arch-independent files (tzwatch) directly,
	# don't use dh_movefiles
	cp tzwatch debian/tzwatch/usr/bin
	dh_installman -ptzwatch tzwatch.1
	dh_installdocs -ptzwatch README
	dh_installchangelogs -ptzwatch ChangeLog
	dh_compress -ptzwatch
	dh_fixperms -ptzwatch
	dh_installdeb -ptzwatch
	dh_gencontrol -ptzwatch
	dh_md5sums -ptzwatch
	dh_builddeb -ptzwatch

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_movefiles -pgworldclock usr/bin/gworldclock usr/share/locale
	dh_installdocs -pgworldclock
	dh_installmenu -pgworldclock
	# man pages could be moved from installed tmp
	# with dh_movefiles but I'd prefer using dh_installman.  
	dh_installman -pgworldclock gworldclock.1
	dh_installchangelogs  -pgworldclock ChangeLog
	dh_link -pgworldclock
	dh_strip -pgworldclock
	dh_compress -pgworldclock
	dh_fixperms -pgworldclock
	dh_installdeb -pgworldclock
	dh_shlibdeps -pgworldclock
	dh_gencontrol -pgworldclock
	dh_md5sums -pgworldclock
	dh_builddeb -pgworldclock

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