#!/usr/bin/make -f # Made with the aid of dh_make, by Craig Small # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. # Some lines taken from debmake, by Cristoph Lameter. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # This has to be exported to make some magic below work. export DH_OPTIONS # Enable hardening build flags export DEB_BUILD_MAINT_OPTIONS=hardening=+all DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) include /usr/share/dpkg/pkg-info.mk UPSTREAM_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's/\+.*//') datumgrids: datumgrids-stamp datumgrids-stamp: unshar -c -d $(CURDIR)/data $(CURDIR)/debian/datumgrids.shar unshar -c -d $(CURDIR)/data $(CURDIR)/debian/datumgrids-ch.shar touch $@ %: if [ "$@" != "datumgrids" -a "$@" != "datumgrids-stamp" ]; then \ dh $@ --with pkgkde_symbolshelper ; \ fi override_dh_auto_clean: ( cd $(CURDIR)/data && cat $(CURDIR)/debian/datumgrids.list $(CURDIR)/debian/datumgrids-ch.list | xargs rm -f ) dh_auto_clean override_dh_auto_configure: datumgrids dh_auto_configure override_dh_auto_test: # Ignore test failures on problematic architectures only ifneq (,$(filter $(DEB_BUILD_ARCH),i386 hurd-i386 hppa ia64 kfreebsd-i386 powerpc)) dh_auto_test || echo "Ignoring test failures" else dh_auto_test endif override_dh_auto_install: dh_auto_install # Empty dependency_libs in .la files sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'` override_dh_install: dh_install --list-missing override_dh_installdocs: dh_installdocs -A AUTHORS NEWS README override_dh_makeshlibs: dh_makeshlibs -- -c0 -v$(UPSTREAM_VERSION)