File: rules

package info (click to toggle)
php-phpdocumentor-reflection-docblock 5.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,416 kB
  • sloc: php: 9,035; xml: 67; makefile: 54
file content (26 lines) | stat: -rwxr-xr-x 641 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
#!/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 vendor
	phpabtpl \
		--require-file ../src/DocBlock/autoload.php \
		--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 --exclude-group noparser2

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