File: rules

package info (click to toggle)
php-doctrine-annotations 2.0.1-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,068 kB
  • sloc: php: 8,441; makefile: 26; xml: 15
file content (30 lines) | stat: -rwxr-xr-x 986 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
28
29
30
#!/usr/bin/make -f

%:
	dh $@ -XCommon/Cache -XCommon/Lexer -Xlib/Psr -XSymfony

override_dh_auto_build:
	phpab \
		--output lib/Doctrine/Common/Annotations/autoload.php \
		--template debian/autoload.php.tpl \
		lib/Doctrine/Common/Annotations
	mkdir --parents vendor
	ln -s /usr/share/php/Doctrine/Common/Cache lib/Doctrine/Common
	ln -s /usr/share/php/Doctrine/Common/Lexer lib/Doctrine/Common
	ln -s /usr/share/php/Psr lib
	ln -s /usr/share/php/Symfony lib
	phpabtpl \
		--require doctrine/annotations \
		--require doctrine/cache \
		--require symfony/cache \
		--require-file ../tests/Doctrine/Tests/Common/Annotations/Fixtures/functions.php \
		--require-file ../tests/Doctrine/Tests/Common/Annotations/Fixtures/SingleClassLOC1000.php \
		> debian/autoload.tests.php.tpl
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.tests.php.tpl \
		--exclude */ClassNoNamespaceNoComment.php \
		tests/Doctrine/Tests

override_dh_auto_test:
	phpunit --include-path lib