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
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-rpath
33
build-stamp: config.status
45
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
46
cp -f /usr/share/misc/config.sub config.sub
48
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
49
cp -f /usr/share/misc/config.guess config.guess
55
dh_clean --exclude ./src/potracegui.cpp.orig
60
dh_clean -k --exclude ./src/potracegui.cpp.orig
63
$(MAKE) install DESTDIR=$(CURDIR)/debian/potracegui
64
mv $(CURDIR)/debian/potracegui/usr/share/doc/HTML/ $(CURDIR)/debian/potracegui/usr/share/doc/kde/HTML/
65
mv $(CURDIR)/debian/potracegui/usr/share/applnk/Utilities/potracegui.desktop $(CURDIR)/debian/potracegui/usr/share/applnk/Graphics/
66
rmdir $(CURDIR)/debian/potracegui/usr/share/applnk/Utilities
68
binary-indep: build install
70
binary-arch: build install
73
dh_installchangelogs ChangeLog
76
dh_installman debian/potracegui.1
79
dh_compress -X.docbook
87
binary: binary-indep binary-arch
88
.PHONY: build clean binary-indep binary-arch binary install