File: rules

package info (click to toggle)
asis-doc 2005-3
  • links: PTS
  • area: non-free
  • in suites: etch, etch-m68k, lenny
  • size: 216 kB
  • ctags: 8
  • sloc: makefile: 35; sh: 18
file content (71 lines) | stat: -rwxr-xr-x 2,079 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
#! /usr/bin/make -rf
# Debian build script for asis-doc - Copyright (c) 2006
# Ludovic Brenta

# This build script is free software; you can redistribute it and/or
# modify it under terms of the GNU General Public License as published
# by the Free Software Foundation; either version 2, or (at your
# option) any later version. This build script is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY; without even
# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE.  See the GNU General Public License for more details. You
# should have received a copy of the GNU General Public License
# distributed with this build script; see file
# /usr/share/common-licenses/GPL. If not, write to the Free Software
# Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

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

# This is the debhelper compatibility version to use.
export DH_COMPAT=4

# This has to be exported to make some magic below work.
export DH_OPTIONS

ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
OS = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)

VERSION := $(shell dpkg-parsechangelog | grep "^Version: " | sed 's/^Version: \(.*\)-\(.*\)/\1/')
REVISION := $(shell dpkg-parsechangelog | grep "^Version: " | sed 's/^Version: \(.*\)-\(.*\)/\2/')

FORMATS=info html pdf txt
MANUALS=asis_ug asis_rm

TARGETS := $(foreach m,$(MANUALS),$(foreach f,$(FORMATS),$(m).$(f)))

clean:
	dh_testdir
	rm -f $(TARGETS) *.aux *.cp *.cps *.fn *.ky *.log *.pg *.toc *.tp *.vr
	dh_clean

build: $(TARGETS)

%.info: %.texi
	makeinfo --no-split -o $@ $<

%.html: %.texi
	-makeinfo --html --force --no-split -o $@ $<

%.pdf: %.texi
	texi2pdf $<

%.txt: %.texi
	makeinfo --no-split --plaintext -o $@ $<

binary: binary-arch binary-indep

binary-arch:

binary-indep: build
	dh_installdocs -i *.pdf *.txt *.html
	dh_installchangelogs -i
	dh_strip -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

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