File: rules

package info (click to toggle)
phpab 1.29.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 852 kB
  • sloc: php: 3,467; xml: 162; makefile: 28
file content (37 lines) | stat: -rwxr-xr-x 1,024 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_auto_build:
	# Mimick Composer layout to bootstrap phpab
	mkdir --parents \
		vendor/theseer/directoryscanner \
		vendor/zetacomponents/base \
		vendor/zetacomponents/console-tools
	ln -s /usr/share/php/TheSeer/DirectoryScanner	vendor/theseer/directoryscanner/src
	ln -s /usr/share/php/ezc/Base			vendor/zetacomponents/base/src
	ln -s /usr/share/php/ezc/ConsoleTools		vendor/zetacomponents/console-tools/src
	# Build phpab’s own autoload.php
	phpabtpl composer.json > debian/autoload.php.tpl
	./phpab.php \
		--output autoload.php \
		--template debian/autoload.php.tpl \
		--basedir src \
		src

override_dh_auto_clean:

override_dh_auto_test:
	phpunit

execute_before_dh_installman:
	mkdir $(CURDIR)/debian/tmp
	help2man --no-info --no-discard-stderr \
		--version-string=$(DEB_VERSION_UPSTREAM) \
		--source="phpab $(DEB_VERSION_UPSTREAM)" \
		--include=$(CURDIR)/debian/phpab.1.in \
		./phpab.php \
	        > $(CURDIR)/debian/tmp/phpab.1