3
# debian/rules file for ggz-gtk-client
5
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
6
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
package := $(firstword $(shell dh_listpackages))
9
prefix := $(PWD)/debian/tmp
12
config_flags := --prefix=/usr \
14
--mandir=$(share)/man \
15
--infodir=$(share)/info \
16
--build $(DEB_HOST_GNU_TYPE)
17
ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
18
config_flags += --host $(DEB_HOST_GNU_TYPE)
22
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
28
export CFLAGS=$(cflags)
29
export CXXFLAGS=$(cflags)
34
version := $(shell dpkg-parsechangelog | \
35
sed -ne 's/^Version: *\([0-9]\+:\)*//p')
36
release := $(firstword $(subst -, , $(version)))
38
get_misc_file = ln -sf /usr/share/misc/$(1) .
39
update_config_sub := $(call get_misc_file,config.sub)
40
update_config_guess := $(call get_misc_file,config.guess)
43
cvs tag -c -F $(subst .,_,debian_version_$(version))
44
ifeq ($(findstring -,$(version)),)
45
cvs tag -c -F $(subst .,_,upstream_version_$(version))
52
$(update_config_guess)
53
$(SHELL) ./configure $(config_flags) \
58
build: config build-stamp
62
# Create links to any common documentation; install everything else.
63
-rm -f debian/*.docs debian/*.links
64
perl -ne '$$ARGV=~m!/(.*)\.docs!;print "$$1 $$_";' debian/*.docs.in | \
66
s=$(doc)/$(common)/$$f.$(release) d=$$f; \
67
[ -f $$s ] || s=$$s.gz d=$$d.gz; \
68
if zcat -f $$s 2>/dev/null | diff -q - $$f >/dev/null; then \
69
echo "$$s $(doc)/$$p/$$d" >> debian/$$p.links; \
71
echo "$$f" >> debian/$$p.docs; \
78
rm -f *-stamp config.sub config.guess
82
binary-indep: checkroot build
84
binary-arch: checkroot build
88
$(MAKE) install DESTDIR=$(prefix)
93
dh_installchangelogs ChangeLog
102
dh_shlibdeps -l$(prefix)/usr/lib
103
dh_gencontrol -- -Vrelease=$(release)
107
binary: binary-indep binary-arch
113
.PHONY: binary binary-indep binary-arch clean checkroot build config
3
include /usr/share/cdbs/1/rules/debhelper.mk
4
include /usr/share/cdbs/1/class/autotools.mk
6
DEB_CONFIGURE_EXTRA_FLAGS = --disable-debug
7
DEB_DH_MAKESHLIBS_ARGS_ALL = -V
8
DEB_SHLIBDEPS_INCLUDE = $(DEB_DESTDIR)/usr/lib