File: rules

package info (click to toggle)
phpseclib 1.0.19-3%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,144 kB
  • sloc: php: 11,118; sh: 57; xml: 54; makefile: 19
file content (23 lines) | stat: -rwxr-xr-x 684 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 $@ --with phpcomposer

override_dh_auto_build:
	phpab \
		--output phpseclib/phpseclib.autoloader.php \
		--template debian/autoload.php.tpl \
		phpseclib
	cp phpseclib/bootstrap.php phpseclib/phpseclib.bootstrap.php
	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 -Xphpseclib/bootstrap.php