File: rules

package info (click to toggle)
php-json-schema 6.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,216 kB
  • sloc: php: 9,403; makefile: 153; python: 28; sh: 13
file content (34 lines) | stat: -rwxr-xr-x 860 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
#!/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/JsonSchema/autoload.php \
		--template debian/autoload.php.tpl \
		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

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