#!/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 PATH=$$PATH $(MAKE) -s override_dh_auto_test: env -i PATH=$$PATH ADETEST_FLAGS=$(ADETEST_FLAGS) $(MAKE) -s tests override_dh_auto_install: env -i PATH=$$PATH 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} @# strip the headurl comment and any blank lines after it to make new config file (see #127) perl -0777 -pe 's/#[^\n]*HeadURL[^\n]*\n+//' doc/examples/pcms.conf > $(CURDIR)/debian/$(PACKAGE)/etc/pcms/pcms.conf perl -0777 -pe 's/#[^\n]*HeadURL[^\n]*\n+//' doc/examples/logrotate > $(CURDIR)/debian/$(PACKAGE)/etc/logrotate.d/pcms perl -0777 -pe 's/#[^\n]*HeadURL[^\n]*\n+//' doc/examples/crontab > $(CURDIR)/debian/$(PACKAGE)/etc/cron.d/pcms @# pcms's examples Makefile doesn't have an install recipe. mkdir -p $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/pcms/examples cp doc/examples/plugin $(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