File: rules

package info (click to toggle)
knowledgeroot 0.9.7.3-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,368 kB
  • ctags: 23,662
  • sloc: php: 6,113; sql: 171; perl: 133; xml: 132; makefile: 40
file content (51 lines) | stat: -rwxr-xr-x 1,628 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

build:

clean:
	dh_testdir
	dh_testroot

	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs

	mkdir -p debian/knowledgeroot/usr/share/knowledgeroot
	mkdir -p debian/knowledgeroot/usr/share/knowledgeroot/config
	cp -a config/config.inc.php.dist debian/knowledgeroot/usr/share/knowledgeroot/config/
	install -D -m 0644 config/config.inc.php debian/knowledgeroot/etc/knowledgeroot/config.inc.php
	cp -a dumps images include system uploads debian/knowledgeroot/usr/share/knowledgeroot/
	cp -a ajax-xml.php index.php move.php debian/knowledgeroot/usr/share/knowledgeroot/
	find debian/knowledgeroot/usr/share/knowledgeroot -type f -exec chmod 0644 {} \;
	chmod 0755 debian/knowledgeroot/usr/share/knowledgeroot/system/fckeditor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl
	rm -f debian/knowledgeroot/usr/share/knowledgeroot/system/tinymce/jscripts/tiny_mce/license.txt
	rm -f debian/knowledgeroot/usr/share/knowledgeroot/system/phpmailer/LICENSE
	install -D -m 0644 debian/apache.conf debian/knowledgeroot/etc/apache/conf.d/knowledgeroot.conf
	install -D -m 0644 debian/apache.conf debian/knowledgeroot/etc/apache2/conf.d/knowledgeroot.conf
binary-arch: build install

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs doc/CHANGELOG
	dh_installdocs
	dh_install
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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