File: rules

package info (click to toggle)
php-doctrine-dbal 2.12.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,568 kB
  • sloc: php: 56,013; xml: 559; makefile: 33; sh: 22
file content (42 lines) | stat: -rwxr-xr-x 1,124 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk
UPSTREAM := $(DEB_VERSION_UPSTREAM)

%:
	dh $@ --with phpcomposer -XREADME.markdown

override_dh_auto_build:
	phpab --tolerant \
		--output lib/Doctrine/DBAL/autoload.php \
		--template debian/autoload.php.tpl \
		lib/Doctrine/DBAL
	mkdir --parents vendor
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.tests.php.tpl \
		tests

override_dh_auto_clean:

override_dh_auto_test:
	phpunit --include-path lib --bootstrap vendor/autoload.php

execute_before_dh_install:
	mkdir --parents $(CURDIR)/debian/tmp
	cp bin/doctrine-dbal.php debian/tmp/doctrine-dbal

override_dh_installchangelogs:
	dh_installchangelogs debian/upstream/changelog

execute_before_dh_installman:
	mkdir --parents $(CURDIR)/config
	ln -s ../debian/cli-config.php $(CURDIR)/config
	help2man \
		--help-option=\  \
		--version-string=$(UPSTREAM) \
		--source="doctrine-dbal $(UPSTREAM)" \
		--no-info \
		--include=$(CURDIR)/debian/doctrine-dbal.1.in \
		"echo -n Usage: doctrine-dbal && $(CURDIR)/bin/doctrine-dbal --no-ansi|tail -n+5" \
		> $(CURDIR)/debian/tmp/doctrine-dbal.1