File: rules

package info (click to toggle)
php-phpseclib 2.0.30-2%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,784 kB
  • sloc: php: 11,331; sh: 73; xml: 49; makefile: 18
file content (22 lines) | stat: -rwxr-xr-x 584 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
#!/usr/bin/make -f
%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	phpab \
		--output phpseclib/autoload.php \
		--template debian/autoload.php.tpl \
		phpseclib
	mkdir --parents vendor
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.test.php.tpl \
	tests

override_dh_auto_test:
	phpunit --include-path phpseclib --bootstrap vendor/autoload.php
	phpcs -s --extensions=php --standard=build/code-sniffer-ruleset.xml phpseclib
	phpcs -s --extensions=php --standard=build/code-sniffer-ruleset-tests.xml tests

override_dh_install:
	dh_install -Xopenssl.cnf