2
_cdbs_scripts_path ?= /usr/lib/cdbs
3
_cdbs_rules_path ?= /usr/share/cdbs/1/rules
4
_cdbs_class_path ?= /usr/share/cdbs/1/class
7
ifndef _cdbs_class_debian-qt-kde
8
_cdbs_class_debian-qt-kde := 1
10
# Note: This _must_ be included before autotools.mk, or it won't work.
11
common-configure-arch common-configure-indep:: debian/stamp-cvs-make
12
debian/stamp-cvs-make:
13
if test -n "$(DEB_KDE_CVS_MAKE)" -a ! -f configure; then \
14
$(MAKE) -C $(DEB_SRCDIR) -f admin/Makefile.common dist; \
16
touch debian/stamp-cvs-make
18
include /usr/share/cdbs/1/class/kde.mk$(_cdbs_makefile_suffix)
19
include debian/cdbs/uploaders.mk
21
DEB_PATCHDIRS := debian/patches/common debian/patches
23
DEB_KDE_ENABLE_FINAL := yes
24
DEB_INSTALL_DOCS_ALL :=
26
DEB_DH_MAKESHLIBS_ARGS_ALL := -V
27
DEB_SHLIBDEPS_INCLUDE = $(foreach p,$(PACKAGES_WITH_LIBS),debian/$(p)/usr/lib)
29
ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
30
cdbs_treat_me_gently_arches := arm m68k alpha ppc64 armel armeb
31
ifeq (,$(filter $(DEB_HOST_ARCH_CPU),$(cdbs_treat_me_gently_arches)))
32
cdbs_kde_enable_final = $(if $(DEB_KDE_ENABLE_FINAL),--enable-final,)
34
cdbs_kde_enable_final =
38
common-build-arch:: debian/stamp-man-pages
39
debian/stamp-man-pages:
40
if ! test -d debian/man/out; then mkdir -p debian/man/out; fi
41
for f in $$(find debian/man -name '*.sgml'); do \
42
docbook-to-man $$f > debian/man/out/`basename $$f .sgml`.1; \
44
for f in $$(find debian/man -name '*.man'); do \
45
soelim -I debian/man $$f \
46
> debian/man/out/`basename $$f .man`.`head -n1 $$f | awk '{print $$NF}'`; \
48
touch debian/stamp-man-pages
52
tmpf=`mktemp debian/versions.XXXXXX`; \
53
perl debian/cdbs/versions.pl >$$tmpf; \
54
for p in $(DEB_INDEP_PACKAGES); do \
55
cat $$tmpf >>debian/$$p.substvars; \
61
tmpf=`mktemp debian/versions.XXXXXX`; \
62
perl debian/cdbs/versions.pl >$$tmpf; \
63
for p in $(DEB_ARCH_PACKAGES); do \
64
cat $$tmpf >>debian/$$p.substvars; \
71
rm -f debian/stamp-man-pages
72
rm -rf debian/shlibs-check
74
$(patsubst %,binary-install/%,$(DEB_PACKAGES)) :: binary-install/%:
75
if test -x /usr/bin/dh_desktop; then dh_desktop -p$(cdbs_curpkg) $(DEB_DH_DESKTOP_ARGS); fi
76
if test -e debian/$(cdbs_curpkg).lintian; then \
77
install -p -D -m644 debian/$(cdbs_curpkg).lintian \
78
debian/$(cdbs_curpkg)/usr/share/lintian/overrides/$(cdbs_curpkg); \
80
if test -e debian/$(cdbs_curpkg).presubj; then \
81
install -p -D -m644 debian/$(cdbs_curpkg).presubj \
82
debian/$(cdbs_curpkg)/usr/share/bug/$(cdbs_curpkg)/presubj; \
85
binary-install/$(DEB_SOURCE_PACKAGE)-doc-html::
87
for doc in `cd $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en; find . -name index.docbook`; do \
88
pkg=$${doc%/index.docbook}; pkg=$${pkg#./}; \
89
echo Building $$pkg HTML docs...; \
90
mkdir -p $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
91
cd $(CURDIR)/debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
92
meinproc $(DEB_DESTDIR)/usr/share/doc/kde/HTML/en/$$pkg/index.docbook; \
94
for pkg in $(DOC_HTML_PRUNE) ; do \
95
rm -rf debian/$(DEB_SOURCE_PACKAGE)-doc-html/usr/share/doc/kde/HTML/en/$$pkg; \
99
if test -n "$(DEB_KDE_CVS_MAKE)" && test -d $(DEB_SRCDIR); then \
101
find . -name Makefile.in -print | \
102
xargs --no-run-if-empty rm -f; \
103
rm -f Makefile.am acinclude.m4 aclocal.m4 config.h.in \
104
configure configure.files configure.in stamp-h.in \
107
rm -f debian/stamp-cvs-make