File: rules

package info (click to toggle)
php-phpdocumentor-reflection-docblock 5.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 852 kB
  • sloc: php: 6,767; makefile: 51; xml: 45
file content (27 lines) | stat: -rwxr-xr-x 691 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:
	phpabtpl composer.json > debian/autoload.php.tpl
	phpab \
		--template debian/autoload.php.tpl \
		--output src/DocBlock/autoload.php \
		--basedir src/DocBlock src
	# Mimic path for tests
	mkdir --parents phpDocumentor/Reflection vendor
	ln -s ../../src/DocBlock phpDocumentor/Reflection
	phpabtpl \
		--require phpdocumentor/reflection-docblock \
		--require mockery/mockery \
		> debian/autoload.php.tests.tpl
	phpab \
		--template debian/autoload.php.tests.tpl \
		--output vendor/autoload.php \
		tests/unit

override_dh_auto_test:
	phpunit

override_dh_installchangelogs:
	dh_installchangelogs $(CURDIR)/debian/upstream/changelog