4
# Uncomment this to turn on verbose mode.
7
# These are used for cross-compiling and for saving the configure script
8
# from having to guess our platform (since we know it already)
9
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
11
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
12
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
14
CROSS= --build $(DEB_BUILD_GNU_TYPE)
19
config.status: configure
21
# Add here commands to configure the package.
22
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
23
cp -f /usr/share/misc/config.sub config.sub
25
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
26
cp -f /usr/share/misc/config.guess config.guess
28
./configure $(CROSS) --prefix=/usr \
29
--bindir=\$${prefix}/games \
30
--datadir=\$${prefix}/share/games \
31
--mandir=\$${prefix}/share/man \
32
--infodir=\$${prefix}/share/info \
39
build-stamp: config.status
42
# Add here commands to compile the package.
52
# Add here commands to clean up after the build process.
53
[ ! -f Makefile ] || [ ! -f key.mk ] || $(MAKE) distclean
54
rm -f config.sub config.guess
64
# Add here commands to install the package into debian/netrek-client-cow.
65
#$(MAKE) prefix=$(CURDIR)/debian/netrek-client-cow/usr install
66
$(MAKE) DESTDIR=$(CURDIR)/debian/netrek-client-cow BINDIR=/usr/games install
68
mv $(CURDIR)/debian/netrek-client-cow/usr/games/netrek \
69
$(CURDIR)/debian/netrek-client-cow/usr/games/netrek-client-cow
71
# Build architecture-independent files here.
72
binary-indep: build install
73
# We have nothing to do by default.
75
# Build architecture-dependent files here.
76
binary-arch: build install
79
dh_installchangelogs ChangeLog
84
dh_installman debian/netrek-client-cow.6
95
binary: binary-indep binary-arch
96
.PHONY: build clean binary-indep binary-arch binary install