File: rules

package info (click to toggle)
gworldclock 1.4.4-11
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,020 kB
  • sloc: sh: 3,862; ansic: 2,248; makefile: 75; sed: 16
file content (81 lines) | stat: -rwxr-xr-x 1,890 bytes parent folder | download | duplicates (2)
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

# set hardening flags
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

build-arch: build
build-indep: build
build: build-stamp
build-stamp:
	dh_testdir
	dh_autotools-dev_updateconfig

	./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
	$(MAKE)

	touch build-stamp

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

	# clean up after the build process.
	[ ! -f Makefile ] || $(MAKE) clean
	[ ! -f Makefile ] || $(MAKE) distclean

	dh_autotools-dev_restoreconfig
	dh_clean

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

# Build architecture-independent files here.
binary-indep: 
	dh_testdir
	dh_testroot
	dh_installdirs -ptzwatch
	dh_install  -ptzwatch
	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_installdirs -pgworldclock
	uudecode debian/gworldclock.png.uuencode
	dh_install -pgworldclock
	rm debian/gworldclock.png
	dh_installdocs -pgworldclock
	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 build-arch build-indep clean binary-indep binary-arch binary install