File: rules

package info (click to toggle)
php-doctrine-common 3.4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 784 kB
  • sloc: php: 6,111; makefile: 23; xml: 16
file content (28 lines) | stat: -rwxr-xr-x 623 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
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	phpabtpl composer.json > debian/autoload.php.tpl
	phpab \
		--output src/autoload.php \
		--template debian/autoload.php.tpl \
		src
	mkdir --parents vendor Doctrine
	phpabtpl \
		--require doctrine/common \
		> debian/autoload.tests.php.tpl
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.tests.php.tpl \
		--blacklist *\\classd \
		--blacklist *\\classe \
		tests
	ln -s ../src Doctrine/Common

override_dh_auto_test:
	phpunit --bootstrap vendor/autoload.php -v

override_dh_installchangelogs:
	dh_installchangelogs debian/upstream/changelog