File: Makefile.am

package info (click to toggle)
systraq 20201231-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,172 kB
  • sloc: sh: 821; makefile: 130
file content (71 lines) | stat: -rw-r--r-- 2,513 bytes parent folder | download | duplicates (4)
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
# This DocBook build stuff is inspired by LogReport's Lire
# ( http://www.logreport.org/ ) documentation build system which is
# Copyright (C) 2000, 2001, 2002, 2003, 2004 Stichting LogReport Foundation
#
# See also caspar ( http://mdcc.cx/caspar/ ), which ships a similar system
#
# Copyright (C) 2001, 2002, 2003, 2004, 2005 Joost van Baal
#
#     This program is free software; you can redistribute it and/or modify
#     it under the terms of the GNU General Public License as published by
#     the Free Software Foundation; either version 2 of the License, or
#     (at your option) any later version.
# 
#     This program 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
#     along with this program (see COPYING); if not, check with
#     http://www.gnu.org/copyleft/gpl.html or write to the Free Software 
#     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
#

HTML2TXT_RULE = $(HTML2TXT) $< > $@

XML2HTML_RULE = $(JADE) -t sgml -D $(top_builddir)/$(subdir) -d $(srcdir)/html.dsl $(XMLDCL) $<

XML2TEX_RULE = $(JADE) -t tex -D $(top_builddir)/$(subdir) -d $(srcdir)/print.dsl -o $@ $(XMLDCL) $<

# run 3 times for toc processing
TEX2DVI_RULE = $(JADETEX) $< && $(JADETEX) $< && $(JADETEX) $< && rm -f $*.log $*.out $*.aux
TEX2PDF_RULE = $(PDFJADETEX) -interaction=batchmode $< && $(PDFJADETEX) -interaction=batchmode $< && $(PDFJADETEX) -interaction=batchmode $< && rm -f $*.log $*.out $*.aux

DVI2PS_RULE = $(DVIPS) -f < $< > $@

base = manual
tmpfiles = $(base).tex $(base).log $(base).aux $(base).out $(base).dvi
buildfiles = $(base).html $(base).ps $(base).pdf $(base).txt

docdir = $(datadir)/doc/$(PACKAGE)
doc_DATA = $(buildfiles)

# do not require jade stuff for installing from .tar.gz distribution: ship
# typesetted docs
EXTRA_DIST = man.ent html.dsl print.dsl manual.dbx $(buildfiles) $(tmpfiles)

DISTCLEANFILES = $(buildfiles) $(tmpfiles)

$(base).tex: $(base).dbx man.ent
	$(XML2TEX_RULE)

$(base).dvi: $(base).tex
	$(TEX2DVI_RULE)
## 	rm $*.log

$(base).ps: $(base).dvi
	$(DVI2PS_RULE)

$(base).pdf: $(base).tex
	$(TEX2PDF_RULE)

## PS2PDF_RULE = $(PS2PDF) $< $@
## %.pdf: %.ps
## 	$(PS2PDF_RULE)

$(base).html: $(base).dbx man.ent
	$(XML2HTML_RULE)

$(base).txt: $(base).html
	$(HTML2TXT_RULE)