File: rules

package info (click to toggle)
fizmo 0.7.10-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 6,344 kB
  • ctags: 2,296
  • sloc: ansic: 28,343; sh: 2,127; xml: 2,024; makefile: 598; cpp: 261
file content (120 lines) | stat: -rwxr-xr-x 2,429 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#!/usr/bin/make -f
# -*- makefile -*-

DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1

include /usr/share/dpkg/buildflags.mk


.PHONY: \
 configure-stamp configure \
 build-stamp build-indep build-arch build \
 clean \
 install \
 binary-indep binary-arch binary \
 fizmo-common fizmo-console fizmo-ncursesw


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

configure: configure-stamp
configure-stamp:
	dh_testdir
	dpkg-buildflags
	dh_auto_configure -- --bindir=/usr/games
	touch configure-stamp

build: configure-stamp build-stamp
build-stamp: configure-stamp
	dh_testdir
	dpkg-buildflags
	dh_prep -p$@
	DESTDIR=$(CURDIR)/debian/fizmo-ncursesw $(MAKE)
	touch build-stamp


# All build target will do nothing by default, since different types of
# builds are required to build each package. Building is instead invoked
# from the "binary" targets later on.

build-indep:

build-arch:

clean:
	dh_testdir
	dh_testroot
	dh_auto_clean -v -pfizmo-common -pfizmo-console -pfizmo-ncursesw
	dh_clean -v

install:

binary: binary-indep binary-arch

binary-indep: fizmo-common

binary-arch: fizmo-console fizmo-ncursesw


fizmo-common: build-stamp
	dh_testroot
	dh_installdirs
	dh_installchangelogs -p$@ CHANGELOG.txt
	dh_installdocs -p$@
	DESTDIR=$(CURDIR)/debian/fizmo-common $(MAKE) install-data-local
	dh_installexamples -p$@
	dh_installman -p$@
	dh_link -p$@
	dh_strip -p$@
	dh_compress -p$@
	dh_fixperms -p$@
	dh_installdeb -p$@
	dh_shlibdeps -p$@
	dh_gencontrol -p$@
	dh_md5sums -p$@
	dh_builddeb -p$@

fizmo-console: build-stamp
	dh_testroot
	dh_installdirs
	dh_installchangelogs -p$@ CHANGELOG.txt
	dh_installdocs -p$@
	dpkg-buildflags
	DESTDIR=$(CURDIR)/debian/fizmo-console $(MAKE) install-fizmo-console
	dh_installexamples -p$@
	dh_installman -p$@
	dh_install -p$@
	dh_lintian -p$@
	dh_link -p$@
	dh_strip -p$@
	dh_compress -p$@
	dh_fixperms -p$@
	dh_installdeb -p$@
	dh_shlibdeps -p$@
	dh_gencontrol -p$@
	dh_md5sums -p$@
	dh_builddeb -p$@

fizmo-ncursesw: build-stamp
	dh_testroot
	dh_installdirs
	dh_installchangelogs -p$@ CHANGELOG.txt
	dh_installdocs -p$@
	dpkg-buildflags
	DESTDIR=$(CURDIR)/debian/fizmo-ncursesw $(MAKE) install-fizmo-ncursesw
	dh_installexamples -p$@
	dh_installman -p$@
	dh_install -p$@
	dh_lintian -p$@
	dh_link -p$@
	dh_strip -p$@
	dh_compress -p$@
	dh_fixperms -p$@
	dh_installdeb -p$@
	dh_shlibdeps -p$@
	dh_gencontrol -p$@
	dh_md5sums -p$@
	dh_builddeb -p$@