#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # Enable hardening build flags export DEB_BUILD_MAINT_OPTIONS=hardening=+all include /usr/share/dpkg/pkg-info.mk BUILD_DATE=$(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)") MANPAGES := $(wildcard debian/man/*.*.xml) %: dh $@ override_dh_clean: dh_clean debian/man/*.1 override_dh_auto_build: # Create man page from DocBook XML for x in $(MANPAGES) ; do \ docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \ mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \ done dh_auto_build override_dh_auto_install: dh_auto_install # Don't install extra license file $(RM) debian/*/usr/share/osm2pgrouting/COPYING # Remove documentation outside usr/share/doc $(RM) debian/*/usr/share/osm2pgrouting/Readme.md