File: rules

package info (click to toggle)
php-masterminds-html5 2.7.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 744 kB
  • sloc: php: 9,563; makefile: 22
file content (27 lines) | stat: -rwxr-xr-x 593 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
26
27
#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_build:
	phpab --output src/HTML5/autoload.php src
	mkdir --parents tmp
	cp src/HTML5/Parser/README.md tmp/README-Parser.md
	cp src/HTML5/Serializer/README.md tmp/README-Serializer.md
	ln -s src Masterminds
	mkdir --parents vendor
	phpabtpl \
		--require masterminds/html5 \
		> debian/autoload.tests.php.tpl
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.tests.php.tpl \
		test

override_dh_install:
	dh_install -XREADME.md

override_dh_auto_test:
	phpunit

override_dh_installchangelogs:
	dh_installchangelogs RELEASE.md