File: rules

package info (click to toggle)
doctrine 2.6.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,356 kB
  • sloc: php: 30,299; makefile: 24
file content (31 lines) | stat: -rwxr-xr-x 761 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
#!/usr/bin/make -f

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

%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	phpab \
		--output lib/Doctrine/ORM/autoload.php \
		--template debian/autoload.php.tpl \
		lib/Doctrine/ORM

override_dh_install:
	mkdir --parents $(CURDIR)/debian/tmp
	cp $(CURDIR)/bin/doctrine.php $(CURDIR)/debian/tmp/doctrine
	dh_install --list-missing

override_dh_installchangelogs:
	dh_installchangelogs debian/upstream/changelog

override_dh_installman:
	help2man \
		--help-option=\  \
		--version-string=$(UPSTREAM) \
		--no-info \
		--include=$(CURDIR)/debian/doctrine.1.in \
		"echo -n Usage: doctrine && $(CURDIR)/bin/doctrine --no-ansi|tail -n+5" \
		> $(CURDIR)/debian/tmp/doctrine.1
	dh_installman