File: rules

package info (click to toggle)
php-doctrine-dbal 2.5.4-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,908 kB
  • ctags: 4,509
  • sloc: php: 21,245; makefile: 26
file content (34 lines) | stat: -rwxr-xr-x 886 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
#!/usr/bin/make -f

UPSTREAM := $(shell head -1 debian/changelog | sed 's/.*(//;s/-.?*).*//')

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

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

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

override_dh_installchangelogs:
	dh_installchangelogs debian/upstream/changelog

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

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