File: rules

package info (click to toggle)
php-db 1.7.6-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 812 kB
  • ctags: 1,546
  • sloc: php: 6,708; pascal: 954; sh: 24; makefile: 24
file content (38 lines) | stat: -rwxr-xr-x 744 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
#!/usr/bin/make -f

source=$(shell dpkg-parsechangelog | grep '^Source: ' | sed -e 's/^Source: //')

build:
	# Nothing to do here

clean:
	dh_testdir
	dh_testroot
	dh_clean

binary: binary-arch binary-indep
	# Nothing to do here

binary-arch:
	# Nothing to do here

binary-indep:
	dh_testdir
	dh_installdirs

	# Custom package actions
	cp DB.php debian/$(source)/usr/share/php/
	cp DB/* debian/$(source)/usr/share/php/DB/
	cp -r tests/* debian/$(source)/usr/share/php/tests/
	chmod 755 debian/$(source)/usr/share/php/tests/{driver/,}run.cvs

	# Rest of the debhelper scripts
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_fixperms
	dh_compress
	dh_gencontrol
	dh_md5sums
	dh_builddeb
.PHONY: binary binary-arch binary-indep build clean