File: rules

package info (click to toggle)
php-json-schema 1.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 252 kB
  • ctags: 336
  • sloc: php: 1,428; makefile: 18
file content (25 lines) | stat: -rwxr-xr-x 594 bytes parent folder | download
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
#!/usr/bin/make -f

UPSTREAM := $(shell dpkg-parsechangelog -S Version | sed 's/-[^-]*//')

%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	phpab --output src/JsonSchema/autoload.php src/JsonSchema

override_dh_installman:
	mkdir --parent $(CURDIR)/debian/tmp
	help2man \
		--name='JSON Schema command line interface' \
		--version-string=$(UPSTREAM) \
		--no-info \
		$(CURDIR)/bin/validate-json \
		> $(CURDIR)/debian/tmp/validate-json.1
	dh_installman

override_dh_installchangelogs:
	dh_installchangelogs debian/upstream/changelog

get-orig-source:
	uscan --verbose --force --rename