File: rules

package info (click to toggle)
php-codecoverage 1.1.2%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 452 kB
  • sloc: php: 2,907; xml: 147; makefile: 15
file content (20 lines) | stat: -rwxr-xr-x 1,076 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

%:
	dh $@ --buildsystem=phppear --with phppear

PEAR ?= /usr/bin/pear
pear_pkg = $(shell ls | grep PHP_CodeCoverage)
package = php-codecoverage

override_dh_install:
	dh_install -O--buildsystem=phppear
	ln -s ../../../../../../../javascript/jquery/jquery.min.js debian/$(package)/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/Template/jquery.min.js
	ln -s ../../../../../../../javascript/yui/yahoo-dom-event/yahoo-dom-event.js debian/$(package)/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/Template/yahoo-dom-event.js
	ln -s ../../../../../../../javascript/yui/container/container-min.js debian/$(package)/usr/share/php/PHP/CodeCoverage/Report/HTML/Renderer/Template/container-min.js

delete_nonfree_from_upstream:
	rm -f $(pear_pkg)/PHP/CodeCoverage/Report/HTML/Renderer/Template/container-min.js
	rm -f $(pear_pkg)/PHP/CodeCoverage/Report/HTML/Renderer/Template/highcharts.js
	rm -f $(pear_pkg)/PHP/CodeCoverage/Report/HTML/Renderer/Template/jquery.min.js
	rm -f $(pear_pkg)/PHP/CodeCoverage/Report/HTML/Renderer/Template/yahoo-dom-event.js