#!/usr/bin/make -f # debian/rules for loki using dh # Andreas Tille , GPL include /usr/share/dpkg/default.mk export DEB_BUILD_MAINT_OPTIONS=hardening=+all MANPAGES=hist.1 \ loki_count.1 \ loki_dist.1 \ loki_ext.1 \ loki_freq.1 \ loki_sort_error.1 \ prep.1 \ qavg.1 %: dh $@ override_dh_auto_configure-arch: dh_auto_configure -- --exec_prefix=$(CURDIR)/debian/loki/usr override_dh_auto_configure-indep: # do nothing here override_dh_auto_install-arch: dh_auto_install -a make install prefix=$(CURDIR)/debian/loki/usr bindir=$(CURDIR)/debian/loki/usr/bin LDFLAGS="$(LDFLAGS)" override_dh_installman-arch: dh_installman -a for man in $(MANPAGES) ; do \ ln -s loki.1.gz debian/$(DEB_SOURCE)/usr/share/man/man1/$${man}.gz ; \ done override_dh_auto_build-indep: # nothing to do here override_dh_auto_install-indep: # nothing to do here override_dh_auto_test-arch: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) cd test; if [ -f Makefile ] ; then make ; fi endif