File: rules

package info (click to toggle)
cakephp 1.2.0.7296-rc2-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 6,032 kB
  • ctags: 23,481
  • sloc: php: 77,476; sql: 92; makefile: 34; sh: 5
file content (55 lines) | stat: -rwxr-xr-x 1,380 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
#!/usr/bin/make -f

include /usr/share/quilt/quilt.make

build: $(QUILT_STAMPFN)

clean: unpatch
	dh_testdir
	dh_testroot
	dh_clean

install:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# cakephp
	cp -r cake/libs cake/config cake/tests cake/*.php debian/cakephp/usr/share/php/cake

	# cakephp-scripts
	cp -r app cake/console debian/cakephp-scripts/usr/share/php/cake/
	cp -r cake/console/cake debian/cakephp-scripts/usr/bin

	# Remove unnecessary 'empty' files and directories
	# These were added by upstream to workaround braindead MacOS X extracting
	# utilities that would silently not create empty directories
	find debian/cakephp -type f -name empty -size 0 | xargs rm -f

	# Remove pointless executable bit (https://trac.cakephp.org/ticket/3817)
	chmod -x debian/cakephp/usr/share/php/cake/tests/cases/libs/model/datasources/dbo/dbo_oracle.test.php

	# Lintian overrides
	cp debian/cakephp.lintian-overrides debian/cakephp/usr/share/lintian/overrides/cakephp
	cp debian/cakephp-scripts.lintian-overrides debian/cakephp-scripts/usr/share/lintian/overrides/cakephp-scripts

binary: binary-indep

binary-arch:

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_install
	dh_installman
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

.PHONY: clean build install binary binary-arch binary-indep