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
|
BASE=ctwm.1
HTML=${BASE}.html
html: ${HTML}
man: ${BASE}
all: html man
all_set_version: all
sed -i '' -e "s/@ctwm_version_str@/`head -1 ../VERSION`/" ${HTML} ${BASE}
clean:
rm -f ${BASE} ${HTML}
#${BASE}.adoc: ../ctwm.man convert.pl
# ./convert.pl < ../ctwm.man > ${BASE}.adoc
# asciidoc vs asciidoctor notes:
#
# Note that asciidoctor has a slightly changed dialect, so there will be
# some glitches in the output. Also, the manpage generation requires
# 1.5.3+ (not yet released as of this writing). At the moment, we're
# trying to work with both. Current trends suggest that at some point
# asciidoctor will be the de facto asciidoc-world implementation, so we
# may drop the py-asciidoc at some point.
# Generating HTML output by various means
html-asciidoc: ${BASE}.adoc
asciidoc -atoc -anumbered -o ${BASE}.html ${BASE}.adoc
html-asciidoctor: ${BASE}.adoc
asciidoctor -atoc -anumbered -o ${BASE}.html ${BASE}.adoc
# Manpage output. x-ref comment above about asciidoctor versions
man-asciidoc-a2x: ${BASE}.adoc
a2x --doctype manpage --format manpage ${BASE}.adoc
man-asciidoc-adoc: ${BASE}.adoc
asciidoc -b docbook -d manpage -o ${BASE}.xml ${BASE}.adoc
xmlto man ${BASE}.xml
man-asciidoctor: ${BASE}.adoc
asciidoctor -b manpage -o ${BASE} ${BASE}.adoc
# Set which are used by default. Set to asciidoctor since it's massively
# faster.
${HTML}: ${BASE}.adoc
@${MAKE} html-asciidoctor
${BASE}: ${BASE}.adoc
@${MAKE} man-asciidoctor
|