File: rules

package info (click to toggle)
phplib 1%3A7.3dev-3.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,752 kB
  • ctags: 247
  • sloc: php: 6,659; perl: 323; pascal: 157; makefile: 102; sh: 7
file content (54 lines) | stat: -rwxr-xr-x 1,421 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
#!/usr/bin/make -f

build:
	touch build

clean:
	dh_clean

binary-indep:
# No binary dependant packages from this.
binary-arch: build
	@echo "No architecture dependant stuff"
	dh_testdir
	dh_clean
	dh_installdirs

# Copy the documentation files
	cp -r doc/* debian/tmp/usr/share/doc/phplib/html/.
	mv debian/tmp/usr/share/doc/phplib/html/*.txt debian/tmp/usr/share/doc/phplib
	mv debian/tmp/usr/share/doc/phplib/html/FAQ* debian/tmp/usr/share/doc/phplib
	mv debian/tmp/usr/share/doc/phplib/html/README* debian/tmp/usr/share/doc/phplib
	rm debian/tmp/usr/share/doc/phplib/html/Makefile

# Copy the example sites
	cp -r pages/* debian/tmp/usr/share/doc/phplib/examples/.

# Copy the include files
	cp php/* debian/tmp/usr/lib/phplib/.
	mv debian/tmp/usr/lib/phplib/prepend.php3 debian/tmp/usr/share/doc/phplib/examples/phplibprepend.php3
	mv debian/tmp/usr/lib/phplib/local.inc debian/tmp/usr/share/doc/phplib/examples/.
	mv debian/tmp/usr/lib/phplib/setup.inc debian/tmp/usr/share/doc/phplib/examples/.

# Copy the SQL scripts
	cp stuff/* debian/tmp/usr/lib/phplib/stuff/.

# Initialize the building procedure
	dh_testroot
	dh_installmanpages
	dh_installchangelogs
	dh_installdocs
	dh_strip
	dh_perl
	dh_fixperms
	dh_suidregister
	dh_compress -X.php3 -X.inc -X.html -X.js
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch binary-indep

.PHONY: clean binary binary-arch binary-indep