#!/usr/bin/make -f # -*- makefile -*- # $HeadURL$ $LastChangedRevision$ #export DH_VERBOSE=1 PACKAGE=pcms SHELL=/bin/bash #ADETEST_FLAGS=-vk get-orig-source: uscan --noconf --force-download --rename --repack --download-current-version --destdir=. %: dh $@ override_dh_auto_configure: : 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 PCMS_PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr PCMS_ETC_PREFIX=$(CURDIR)/debian/$(PACKAGE)/etc \ $(MAKE) install @# missing directories mkdir -p $(CURDIR)/debian/$(PACKAGE)/var/log/pcms mkdir -p $(CURDIR)/debian/$(PACKAGE)/etc/{cron.d,logrotate.d,pcms} cat doc/examples/pcms.conf > $(CURDIR)/debian/$(PACKAGE)/etc/pcms/pcms.conf cp doc/examples/logrotate $(CURDIR)/debian/$(PACKAGE)/etc/logrotate.d/pcms cp doc/examples/crontab $(CURDIR)/debian/$(PACKAGE)/etc/cron.d/pcms @# stuff that got installed that we don't want rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/pcms/examples @# dh will take care of installing ChangeLog as changelog.gz rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/pcms/ChangeLog rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/pcms/COPYING