#!/usr/bin/make -f # -*- makefile -*- # $HeadURL$ $LastChangedRevision$ #export DH_VERBOSE=1 PACKAGE=rocon SHELL=/bin/bash #ADETEST_FLAGS=-vk get-orig-source: uscan --noconf --force-download --rename --repack --download-current-version --destdir=. %: dh $@ override_dh_auto_configure: perl -pi -e 's@(_ETC_PREFIX)=.*@$$1=/etc@' bin/*-config.sh override_dh_auto_build: env -i $(MAKE) -s override_dh_auto_test: env -i ADETEST_FLAGS=$(ADETEST_FLAGS) $(MAKE) -s tests override_dh_auto_install: env -i ROCON_PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr ROCON_ETC_PREFIX=$(CURDIR)/debian/$(PACKAGE)/etc \ $(MAKE) install @# missing directories mkdir -p $(CURDIR)/debian/$(PACKAGE)/etc/cron.d @# example config files we use { \ echo "ROCON_CHECK_CLIENT=true"; \ echo "ROCON_CHECK_SERVER=false"; \ } > $(CURDIR)/debian/$(PACKAGE)/etc/rocon-check.conf cp doc/examples/cron $(CURDIR)/debian/$(PACKAGE)/etc/cron.d/rocon-check @# example config files we don't want to use rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/rocon/examples/rocon-check.conf rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/rocon/examples/cron @# dh will take care of installing ChangeLog as changelog.gz rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/rocon/ChangeLog rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/rocon/COPYING