1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
UPSTREAM := $(DEB_VERSION_UPSTREAM)
%:
dh $@
override_dh_auto_build:
phpabtpl composer.json > debian/autoload.php.tpl
phpab \
--output src/autoload.php \
--template debian/autoload.php.tpl \
src
override_dh_auto_test:
phpunit --bootstrap src/autoload.php
execute_before_dh_installman:
mkdir -p $(CURDIR)/debian/tmp
cd debian/phploc/usr/share/php && \
help2man --no-info \
--help-option=\ \
--version-string=$(UPSTREAM) \
--source="phploc $(UPSTREAM)" \
--include=$(CURDIR)/debian/phploc.1.in \
"echo -n Usage: && ../../bin/phploc --help|tail -n+4" \
> $(CURDIR)/debian/tmp/phploc.1
|