File: rules

package info (click to toggle)
abs-guide 3.4-1
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 784 kB
  • ctags: 1
  • sloc: makefile: 57
file content (73 lines) | stat: -rwxr-xr-x 1,481 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
69
70
71
72
73
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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

build: build-stamp
build-stamp:
	dh_testdir
	rm -rf abs
	mkdir abs
	cd abs && tar xfj ../abs-guide-3.4.tar.bz2
	mv abs/HTML abs/html
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	rm -rf abs
	dh_clean

# see README for scripts to fix
scripts_to_fix = \
	du.sh \
	encryptedpw.sh \
	ex57.sh \
	ex70.sh \
	ex71.sh \
	ex71a.sh \
	ex71b.sh \
	logevents.sh \
	m4.sh \
	pw.sh \
	read-r.sh \
	rnd.sh \
	rot13.sh \
	here-function.sh \
	directory-info.sh \
	bashrc

# Build architecture-independent files here.
binary-indep: build
	dh_testdir
	dh_testroot
	dh_installchangelogs abs/Change.log
	dh_installdocs abs/html abs/abs-book.sgml
	dh_installexamples abs/*.sh abs/bashrc
	cd debian/abs-guide/usr/share/doc/abs-guide/examples && \
	for f in $(scripts_to_fix); do \
	  sed -e 's/&lt;/</g' -e 's/&gt;/>/g' -e 's/&amp;/&/g' \
	    $$f > $$f.new; \
	  if cmp -s $$f $$f.new; then \
	    rm -f $$f.new; \
	  else \
	    echo fixed $$f; \
	    mv -f $$f.new $$f; \
	  fi; \
	done
	dh_compress -X.sh -X.anchors -Xbashrc
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.

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