File: rules

package info (click to toggle)
doctrine 2.5.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,232 kB
  • ctags: 7,284
  • sloc: php: 29,443; makefile: 25
file content (33 lines) | stat: -rwxr-xr-x 835 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
#!/usr/bin/make -f

UPSTREAM := $(shell dpkg-parsechangelog -S Version | sed 's/-[^-]*//')

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

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.php --no-ansi|tail -n+4" \
		> $(CURDIR)/debian/tmp/doctrine.1
	dh_installman

get-orig-source:
	uscan --force --verbose --rename