File: rules

package info (click to toggle)
gtml 3.5.4-12
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 512 kB
  • ctags: 187
  • sloc: perl: 1,559; makefile: 28
file content (46 lines) | stat: -rwxr-xr-x 1,064 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
#!/usr/bin/make -f

# Set to enable verbose output from debhelper
#export DH_VERBOSE=1

install_dir = debian/gtml

%:
	dh $@

override_dh_installdocs:
	dh_installdocs README

override_dh_installexamples:
	dh_installexamples src/*

override_dh_installman:
	dh_installman gtml.1

override_dh_compress:
	dh_compress -X.gtm

override_dh_installdirs:
	dh_installdirs usr/bin usr/share/doc/gtml/html

# This takes the place of an upstream install process
override_dh_auto_install:
	install -p gtml $(install_dir)/usr/bin
	install -p -m 644       \
           index.html      \
           gtml_ref.html   \
           CREDITS.html    \
           NEWS.html       \
           new.gif         \
			  $(install_dir)/usr/share/doc/gtml/html

# This takes the place of an upstream build process
override_dh_auto_build:
	pod2man --center='Debian GNU/Linux' --release='gtml 3.5.4' debian/gtml.pod > gtml.1
	ln -s gtml.html index.html # upstream tarball has this link

# This takes the place of an upstream clean process
override_dh_auto_clean:
	rm -f gtml.1
	rm -f index.html