#!/usr/bin/make -f ifeq (experimental,$(shell dpkg-parsechangelog|grep ^Dist|cut -d ' ' -f 2)) export DEB_BUILD_OPTIONS += debug nostrip endif ### CDBS includes include /usr/share/cdbs/1/rules/debhelper.mk include debian/cdbs/kde.mk include /usr/share/cdbs/1/rules/simple-patchsys.mk ### Manpages XP = xsltproc --nonet --output debian/man/ DB2MAN = /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl %.1 : %.1.docbook $(XP) $(DB2MAN) $< GENERATED_MANPAGES := $(patsubst %.docbook,%,$(wildcard debian/man/*.docbook)) build/konversation:: $(GENERATED_MANPAGES) clean:: -rm -f $(GENERATED_MANPAGES) ### Check to prevent .svn dirs in source package pre-build:: echo DEB_BUILD_OPTIONS = $(DEB_BUILD_OPTIONS) ifeq (,$(TEST)) # To circumvent: fakeroot debian/rules TEST=1 binary [ ! -d debian/.svn ] [ ! -d ./CVS ] endif ### Extra file installation install/konversation:: install -D -m 644 konversation/scripts/README \ debian/konversation/usr/share/doc/konversation/README.scripts ### Post-install hacking $(patsubst %,binary-post-install/%,$(DEB_PACKAGES)):: # remove empty files rm -f debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/{README,NEWS}