File: rules

package info (click to toggle)
bookmarks 0.10
  • links: PTS
  • area: main
  • in suites: potato
  • size: 180 kB
  • ctags: 12
  • sloc: perl: 243; makefile: 45
file content (61 lines) | stat: -rwxr-xr-x 1,350 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
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

version=0.5.0

build: build-stamp
build-stamp:
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-make distclean
	-rm -f `find . -name "*~"`
	-rm -f `find . -name "*,v"`
	-rm -rf debian/tmp `find debian/* -type d ! -name CVS` debian/files* core
	-rm -f debian/*substvars
	dh_clean

binary-indep: build-stamp
	dh_testdir
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: build
	dh_testversion
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	cp bin/bookmarks-convert debian/tmp/usr/bin/bookmarks-convert
	cp -R public_html/* debian/tmp/usr/share/bookmarks
	bin/bookmarks-convert -r -o ns1 public_html/index.html bookmarks.ns1
	mv bookmarks.ns1 debian/tmp/usr/share/bookmarks
	
	dh_installdocs
	dh_installdocs OVERVIEW README.html-type README.ns1-type THANKS README
	dh_installmanpages
	dh_installchangelogs
	dh_fixperms
	dh_compress
	dh_installdeb
	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

checkroot:
	$(checkdir)
	test root = "`whoami`"

.PHONY: binary binary-arch binary-indep clean checkroot