debian swirl logo

Back to the packages list gtklp

#!/usr/bin/make -f
#
# rules --- Debian packaging rules for gtklp
# Copyright (C) 2006 Zak B. Elep 
#
# $Id: rules,v 1.2 2006-06-03 12:16:34 zakame Exp $

# Let's use CDBS!

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
-include /usr/share/topgit/tg2quilt.mk
include /usr/share/cdbs/1/class/autotools.mk

# diffs are managed in git, which TopGit/Quilt generate patches from via
# debian/rules tg-cleanexport
QUILT_PATCH_DIR = debian/patches

# Specify what source docs should go in /usr/share/doc/gtklp
DEB_INSTALL_DOCS_ALL := README AUTHORS TODO

# Let CDBS rebuild the Autotools for us, using the source's own
# autogen.sh (NOTE: we could have set the DEB_AUTO_UPDATE_* variables
# here, but for some reason CDBS won't regenerate a missing aclocal.m4,
# as is currently the case in gtklp-1.2.7)
post-patches::
		test -e debian/stamp-autogen-sh || (sh -x autogen.sh && touch	\
			debian/stamp-autogen-sh)

# Remove extra ch{s,t} locales (we already have zh_{CN,TW}
install/gtklp::
		rm -rf debian/gtklp/usr/share/locale/chs
		rm -rf debian/gtklp/usr/share/locale/cht

# Remove generated .gmo files and Autotools stuff
clean::
		rm -f debian/stamp-autogen-sh
		rm -f po/*.gmo po/stamp-po
		rm -f Makefile.in config.h.in configure depcomp			\
		      gtklp/Makefile.in gtklpq/Makefile.in install-sh		\
		      libgtklp/Makefile.in m4/Makefile.in man/Makefile.in	\
		      missing mkinstalldirs config.guess config.sub ltmain.sh	\
		      m4/libtool.m4

Builds:

gtklp
printing tool for cups on the gnome desktop