5
include /usr/share/cdbs/1/rules/debhelper.mk
6
include /usr/share/cdbs/1/class/autotools.mk
7
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
9
# Add here any variable or target overrides you need.
10
LDFLAGS += -Wl,-O1 -Wl,-z,defs -Wl,--warn-unresolved-symbols -Wl,--as-needed
11
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14
# Debian has a central copy of the GPL, no need to distribute again
15
common-binary-post-install-arch::
16
rm -f $(DEB_DESTDIR)/usr/share/doc/gkamus/COPYING
3
include /usr/share/quilt/quilt.make
5
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
9
CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
20
rm -f config.guess config.sub
22
[ ! -f Makefile ] || $(MAKE) clean
27
config.status: configure patch
30
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
31
cp -f /usr/share/misc/config.guess config.guess
33
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
34
cp -f /usr/share/misc/config.sub config.sub
37
./configure $(CROSS) --prefix=/usr
40
build-stamp: config.status
51
$(MAKE) install prefix=$(CURDIR)/debian/gkamus/usr
58
dh_installchangelogs ChangeLog
60
dh_installman debian/gkamus.1
64
dh_strip --dbg-package=gkamus-dbg
75
.PHONY: clean build install binary binary-arch binary-indep