2
# Sample debian/rules that uses debhelper.
3
# GNU copyright 1997 to 1999 by Joey Hess.
5
# Uncomment this to turn on verbose mode.
9
# These are used for cross-compiling and for saving the configure script
10
# from having to guess our platform (since we know it already)
11
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
22
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
26
config.status: configure
28
# Add here commands to configure the package.
29
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
34
build-stamp: config.status
37
# Add here commands to compile the package.
39
#/usr/bin/docbook-to-man debian/gtkboard.sgml > gtkboard.1
5
dh build --before auto_configure
6
dh_auto_configure -- --bindir=\$${prefix}/games
7
dh build --after auto_configure
47
# Add here commands to clean up after the build process.
49
12
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
50
13
cp -f /usr/share/misc/config.sub config.sub
53
16
cp -f /usr/share/misc/config.guess config.guess
59
install: build manpage
64
# Add here commands to install the package into debian/gtkboard.
65
$(MAKE) install DESTDIR=$(CURDIR)/debian/gtkboard
66
mkdir --parents debian/gtkboard/usr/share/doc/gtkboard/html/devel
67
cp -a doc/index.html debian/gtkboard/usr/share/doc/gtkboard/html/
68
cp -a doc/devel/devel/index.html debian/gtkboard/usr/share/doc/gtkboard/html/devel/
19
install: install-stamp
21
dh install --before fixperms
22
install -d debian/gtkboard/usr/share/doc/gtkboard/html/devel
23
install doc/index.html \
24
debian/gtkboard/usr/share/doc/gtkboard/html/
25
install doc/devel/devel/index.html \
26
debian/gtkboard/usr/share/doc/gtkboard/html/devel/
69
27
install -d debian/gtkboard/usr/share/applications
70
install -m644 debian/gtkboard.desktop debian/gtkboard/usr/share/applications
73
# Build architecture-independent files here.
74
binary-indep: build install
75
# We have nothing to do by default.
77
# Build architecture-dependent files here.
78
binary-arch: build install
81
dh_installchangelogs ChangeLog
94
dh_installman debian/gtkboard.6
108
binary: binary-indep binary-arch
28
install debian/gtkboard.desktop \
29
debian/gtkboard/usr/share/applications
30
dh install --remaining
33
binary binary-arch binary-indep: install
109
36
.PHONY: build clean binary-indep binary-arch binary install
111
38
## This will re-generate the man page.
112
39
## Not used during normal build; just a good place to keep this info.
41
#install-stamp: manpage
113
43
manpage: debian/gtkboard.6
115
help2man --name="play a variety of board games" --section=6 --no-info --output=$@ src/gtkboard
45
debian/gtkboard.6: build
46
help2man --name="play a variety of board games" \
47
--section=6 --no-info --output=$@ \