File: rules

package info (click to toggle)
php-fpdf 3%3A1.8.4.dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 772 kB
  • sloc: php: 3,254; makefile: 45; sh: 5
file content (60 lines) | stat: -rwxr-xr-x 1,176 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/make -f

PKD   = $(abspath $(dir $(MAKEFILE_LIST)))
PKG   = 'php-fpdf'
VER  = '1.8'

configure: configure-stamp

configure-stamp:
	dh_testdir
	touch configure-stamp

build: build-stamp

build-stamp: $(QUILT_STAMPFN) configure-stamp
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs usr/share/php/fpdf
	dh_install fpdf.php font/ makefont/ usr/share/php/fpdf/
	dh_link usr/share/php/fpdf usr/share/fpdf
	dh_link usr/share/php/fpdf/fpdf.php usr/share/php/fpdf.php
	#find tutorial/ -path '*php' -print0 | xargs -0 perl -i -p -e 's/\.\.\/fpdf.php/fpdf.php/'
	find $(DEB_DESTDIR) -type f -and -perm /111 -print0 | xargs -0ri chmod a-x '{}'

binary-arch:

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs changelog.htm
	dh_installexamples
	dh_installman
	dh_compress --exclude=20k_c1.txt --exclude=20k_c2.txt
	dh_strip
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep

build-arch: build

build-indep: build

.PHONY: build clean binary-indep binary install configure