File: rules

package info (click to toggle)
webmin-slbackup 0.0.9-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 212 kB
  • ctags: 44
  • sloc: perl: 1,122; makefile: 51; sh: 11
file content (64 lines) | stat: -rwxr-xr-x 1,416 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
56
57
58
59
60
61
62
63
64
#!/usr/bin/make -f

clean:
	rm -rf *~ debian/tmp
	rm -f build-stamp
	dh_clean

build:
	echo "Nothing to build"

binary: binary-arch binary-indep

binary-arch: 

DESTDIR = debian/tmp

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	for prog in index.cgi ; do \
		install --mode=755 $$prog \
		    $(DESTDIR)/usr/share/webmin/slbackup/$$prog ; \
	done
	
	for module in WebminSLBackup.pm ; do \
		install --mode=644 $$module \
		    $(DESTDIR)/usr/share/webmin/slbackup/$$module ; \
	done

#	install --mode=644 *.info *.pl *.ps *.txt \
#		$(DESTDIR)/usr/share/webmin/slbackup
	install --mode=644 module.info \
		$(DESTDIR)/usr/share/webmin/slbackup
	install --mode=644 images/icon.gif \
		$(DESTDIR)/usr/share/webmin/slbackup/images/
	for tmpl in html-templates/*; do \
		install --mode=644 $$tmpl \
			$(DESTDIR)/usr/share/webmin/slbackup/html-templates/;\
	done
	for lang in lang/en; do \
		install --mode=644 $$lang \
			$(DESTDIR)/usr/share/webmin/slbackup/lang/;\
	done
	install --mode=600 admin.acl $(DESTDIR)/etc/webmin/slbackup/admin.acl
	install --mode=600 config $(DESTDIR)/etc/webmin/slbackup/config
	install --mode=644 config.info $(DESTDIR)/usr/share/webmin/slbackup/config.info

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdebconf
	dh_installdocs
	dh_installchangelogs
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_perl
	dh_gencontrol
	dh_md5sums
	dh_builddeb