#!/usr/bin/make -f include /usr/share/dpkg/default.mk UPSTREAM := $(DEB_VERSION_UPSTREAM) %: dh $@ override_dh_auto_build: phpab --output src/JsonSchema/autoload.php src/JsonSchema mkdir --parents vendor php/data phpabtpl \ --require-file ../src/JsonSchema/autoload.php \ --require phpspec/prophecy \ > debian/autoload.tests.php.tpl phpab \ --output vendor/autoload.php \ --template debian/autoload.tests.php.tpl \ tests ln -s ../.. php/data/JsonSchema override_dh_auto_test: phpunit --include-path src execute_before_dh_installman: mkdir --parent $(CURDIR)/debian/tmp help2man \ --name='JSON Schema command line interface' \ --version-string=$(UPSTREAM) \ --source="validate-json $(UPSTREAM)" \ --no-info \ $(CURDIR)/bin/validate-json \ > $(CURDIR)/debian/tmp/validate-json.1 override_dh_installchangelogs: dh_installchangelogs debian/upstream/changelog