File: rules

package info (click to toggle)
phpmd 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 680 kB
  • ctags: 774
  • sloc: php: 3,320; xml: 1,022; makefile: 21
file content (26 lines) | stat: -rwxr-xr-x 701 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
#!/usr/bin/make -f
%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	phpab \
		--output src/main/php/PHPMD/autoload.php \
		--template debian/autoload.php.tpl \
		src/main/php/PHPMD

override_dh_install:
	dh_install
	sed -i s,@data_dir@,/usr/share/php/data, debian/phpmd/usr/share/php/PHPMD/RuleSetFactory.php
	sed -i s,@package_version@,workaround,	 debian/phpmd/usr/bin/phpmd

override_dh_installman:
	mkdir $(CURDIR)/debian/tmp
	cd debian/phpmd/usr/share/php && \
        help2man --no-info --no-discard-stderr \
        --name='PHPMD command line interface' \
        ../../bin/phpmd \
        > $(CURDIR)/debian/tmp/phpmd.1
	dh_installman

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