File: rules

package info (click to toggle)
mh-book 200605-2
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 6,356 kB
  • ctags: 2,059
  • sloc: sh: 1,449; perl: 642; ansic: 279; php: 58; makefile: 39; csh: 8
file content (49 lines) | stat: -rwxr-xr-x 1,268 bytes parent folder | download | duplicates (2)
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
#!/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:

clean:
	dh_testdir
	dh_testroot
	dh_clean

install:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	tar --exclude debian --exclude README --exclude NEWS -cf - ./ | ( cd debian/mh-book/usr/share/doc/mh-book/html/ ; tar xf - )
	(cd debian/mh-book/usr/share/doc/mh-book/html/ ; mv examples ../ ; ln -s ../examples)
	(cd debian/mh-book/usr/share/doc/mh-book/examples/mh/bin; perl -pi -e s:/usr/local/bin/perl:/usr/bin/perl: rfl)

# Build architecture-independent files here.
binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installchangelogs 
	dh_link
	dh_strip
	gzip -9n debian/mh-book/usr/share/doc/mh-book/changelog.Debian
	dh_fixperms
	chmod +x debian/mh-book/usr/share/doc/mh-book/examples/mh/bin/*
	chmod +x debian/mh-book/usr/share/doc/mh-book/examples/xmh/bin/*
	chmod -x debian/mh-book/usr/share/doc/mh-book/examples/mh/old-edition2/rm_msgs.cron*
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: binary-indep

binary: binary-indep

.PHONY: clean binary-indep binary install configure build