1 MAN1_TXT
=$(wildcard stg
*.txt
)
3 DOC_HTML
=$(patsubst %.txt
,%.html
,$(MAN1_TXT
))
6 # with their own formatting rules.
9 DOC_HTML
+= $(patsubst %,%.html
,$(ARTICLES
) $(SP_ARTICLES
))
10 DOC_PDF
+= $(patsubst %,%.pdf
,$(ARTICLES
) $(SP_ARTICLES
))
12 DOC_MAN1
=$(patsubst %.txt
,%.1,$(MAN1_TXT
))
15 mandir?
=$(prefix)/share
/man
16 man1dir=$(mandir)/man1
19 ASCIIDOC
=asciidoc
--unsafe
24 # Please note that there is a minor bug in asciidoc.
25 # The version after 6.0.3 _will_ include the patch found here:
26 # http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
28 # Until that version is released you may have to apply the patch
29 # yourself - yes, all 6 characters of it!
37 $(DOC_HTML
) $(DOC_MAN1
): asciidoc.conf
42 $(INSTALL
) -d
-m755
$(DESTDIR
)$(man1dir)
43 $(INSTALL
) -m644
$(DOC_MAN1
) $(DESTDIR
)$(man1dir)
45 # Determine "include::" file references in asciidoc files.
47 doc.dep
: $(wildcard *.txt
) build-docdep.perl
49 perl .
/build-docdep.perl
>$@
+
55 rm -f
*.xml
*.html
*.pdf
*.1 doc.dep
58 $(ASCIIDOC
) -b xhtml11
-d manpage
-f asciidoc.conf
$(ASCIIDOC_EXTRA
) $<
61 xmlto
-m callouts.xsl man
$<
64 $(ASCIIDOC
) -b docbook
-d manpage
-f asciidoc.conf
$<
69 # special formatting rules
70 tutorial.html
: %.html
: %.txt
71 $(ASCIIDOC
) -b xhtml11
-d article
-f tutorial.conf
$(ASCIIDOC_EXTRA
) $<
72 tutorial.xml
: %.xml
: %.txt
73 $(ASCIIDOC
) -b docbook
-d article
-f tutorial.conf
$<