File: rules

package info (click to toggle)
php-doctrine-annotations 1.11.2-1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,028 kB
  • sloc: php: 8,480; makefile: 19
file content (23 lines) | stat: -rwxr-xr-x 669 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
#!/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
	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