File: rules

package info (click to toggle)
php-gettext-languages 2.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 460 kB
  • sloc: php: 1,361; makefile: 12; xml: 10
file content (19 lines) | stat: -rwxr-xr-x 459 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
#export DH_VERBOSE = 1

%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	# Workaround to ensure the local class takes precedence during tests.
	mkdir --parents Gettext
	ln -s ../src Gettext/Languages
	# Build classloader for tests
	mkdir --parents vendor
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.test.php.tpl \
		tests

override_dh_auto_test:
	phpunit --do-not-cache-result --prepend vendor/autoload.php