File: rules

package info (click to toggle)
php-league-html-to-markdown 5.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 468 kB
  • sloc: php: 1,641; makefile: 20; xml: 15; sh: 5
file content (26 lines) | stat: -rwxr-xr-x 682 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
%:
	dh $@

include /usr/share/dpkg/default.mk

override_dh_auto_build:
	phpab --output src/autoload.php src
	# Mimic install path for tests
	mkdir --parents League share
	ln -s ../src League/HTMLToMarkdown
	ln -s .. share/php

override_dh_auto_test:
	phpunit --bootstrap debian/autoload.tests.php

execute_before_dh_installman:
	mkdir --parents $(CURDIR)/debian/tmp
	help2man \
		--help-option=\  \
		--version-string=$(DEB_VERSION_UPSTREAM) \
		--source="html-to-markdown $(DEB_VERSION_UPSTREAM)" \
		--no-info \
		--include=$(CURDIR)/debian/html-to-markdown.1.in \
		"$(CURDIR)/bin/html-to-markdown -h | tail -n+3" \
		> $(CURDIR)/debian/tmp/html-to-markdown.1