#!/usr/bin/make -f # -*- makefile -*- # Made with the aid of dh_make, by Craig Small # Uses debhelper, GNU copyright 1997 by Joey Hess. # Some lines taken from debmake, by Cristoph Lameter. export LC_ALL=C topdir=$(shell pwd) debdir=${topdir}/debian tmpdir=${debdir}/tmp docdir=${debdir}/konwert-filters/usr/share/doc CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS) CXXFLAGS := -Wall $(shell dpkg-buildflags --get CXXFLAGS) LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) build-arch: build build-indep: build build: build-stamp build-stamp: dh_testdir chmod +x filters/UTF8-prn7pl make CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" prefix=/usr touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp ${MAKE} clean || true dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs ${MAKE} install prefix=${tmpdir}/usr nofixmanconfig=1 \ mandir=${tmpdir}/usr/share/man mkdir -p ${tmpdir}/usr/share/doc mv ${tmpdir}/usr/doc/* ${tmpdir}/usr/share/doc/ rmdir ${tmpdir}/usr/doc dh_movefiles # cd debian/konwert-filters/usr/share/konwert/filters/ && \ # mv 512bold 512bold1 ${tmpdir}/usr/share/konwert/filters test -z "`find ${tmpdir} -not -type d | tee /dev/fd/2`" binary-indep: install dh_testdir -i dh_testroot -i cd ${debdir}/konwert-dev/usr/share/doc && \ ln -s konwert konwert-dev # override hardlinks warnings mkdir -p ${debdir}/konwert-filters/usr/share/lintian/overrides/ cp debian/lintian-override \ ${debdir}/konwert-filters/usr/share/lintian/overrides/konwert-filters # remove symlink to binary-arch filter (could be improved - is it worth ?) # (cd ${debdir}/konwert-filters/usr/share/konwert/filters/ && \ # ( test -L 512bold && rm 512bold ; \ # test -L 512bold1 && rm 512bold1 ) ) # rename docdir cd ${docdir} && mv konwert-* konwert-filters # remove GPL and redundant files cd ${docdir}/konwert-filters && rm */COPYING en/CHANGES pl/ZMIANY dh_installdocs -pkonwert-filters dh_installchangelogs -pkonwert-filters doc/en/CHANGES dh_compress -i dh_fixperms -i dh_installdeb -i dh_perl -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: install dh_testdir -a dh_testroot -a dh_bash-completion -a # what is this empy dir for ? # rmdir ${tmpdir}/usr/lib/konwert/devel/ rm -rf ${tmpdir}/usr/share/doc/konwert-1.8 dh_installdocs -a ln -s ../konwert-filters/en ../konwert-filters/pl debian/konwert/usr/share/doc/konwert/ dh_buildinfo -a dh_installchangelogs -a dh_strip -a dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_perl -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-indep binary-arch .PHONY: build build-arch build-indep clean binary-indep binary-arch binary