File: rules

package info (click to toggle)
php-mail 1.1.6-2%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 96 kB
  • ctags: 191
  • sloc: php: 681; makefile: 23
file content (37 lines) | stat: -rwxr-xr-x 683 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
27
28
29
30
31
32
33
34
35
36
37
#!/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 Mail.php debian/$(source)/usr/share/php/
	cp Mail/* debian/$(source)/usr/share/php/Mail/
	cp tests/* debian/$(source)/usr/share/php/tests/
	
	# 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