File: rules

package info (click to toggle)
doc-iana 20081201-1
  • links: PTS, VCS
  • area: non-free
  • in suites: lenny
  • size: 118,212 kB
  • ctags: 1,179
  • sloc: xml: 55,434; perl: 1,159; makefile: 45
file content (68 lines) | stat: -rwxr-xr-x 1,656 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
65
66
67
68
#!/usr/bin/make -f

DATE=$(shell date +%Y%m%d)

upstream:
	# Needs: wget

	mkdir -p ../doc-iana-$(DATE)
	cd ../doc-iana-$(DATE) && \
	wget --convert-links --mirror www.iana.org && \
	mv www.iana.org upstream

	# Fixing time
	touch ../doc-iana-$(DATE)/upstream/assignments/mikey-payloads

	# Don't embedd prototype.js
	rm -f ../doc-iana-$(DATE)/upstream/_js/prototype.js

	tar cfz ../doc-iana_$(DATE).orig.tar.gz ../doc-iana-$(DATE)

clean:
	dh_testdir
	dh_testroot

	dh_clean

build:

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs

	install -d -m 755 debian/doc-iana/usr/share/doc/doc-iana
	cp -a upstream debian/doc-iana/usr/share/doc/doc-iana/html

	# Adding prototype.js link
	ln -s /usr/share/javascript/prototype/prototype.js debian/doc-iana/usr/share/doc/doc-iana/html/_js/prototype.js

	# Removing unused files
	rm -rf debian/doc-iana/usr/share/doc/doc-iana/html/cgi-bin
	rm -rf debian/doc-iana/usr/share/doc/doc-iana/html/comments
	rm -rf debian/doc-iana/usr/share/doc/doc-iana/html/draft-status
	rm -rf debian/doc-iana/usr/share/doc/doc-iana/html/faqs
	rm -rf debian/doc-iana/usr/share/doc/doc-iana/html/periodic-reports
	rm -rf debian/doc-iana/usr/share/doc/doc-iana/html/procedures
	rm -rf debian/doc-iana/usr/share/doc/doc-iana/html/reporting-and-stats
	rm -rf debian/doc-iana/usr/share/doc/doc-iana/html/reports

binary: binary-indep

binary-arch:

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_lintian
	dh_compress -Xusr/share/doc/doc-iana/html
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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