aboutsummaryrefslogtreecommitdiff
path: root/doc/asciidoc/Makefile
diff options
context:
space:
mode:
authorJim Ramsay <i.am@jimramsay.com>2009-02-18 01:52:35 (GMT)
committerJim Ramsay <i.am@jimramsay.com>2009-05-26 20:16:06 (GMT)
commit6beb1f96b25cd4ce23395d6666aa8ea22038817e (patch)
treef7b764e1b7220b75cecb35dece73e31a4b33db6e /doc/asciidoc/Makefile
parentbd8275b33cec5b0765b93e8905bfefcdfd994b73 (diff)
downloadfluxbox_paul-6beb1f96b25cd4ce23395d6666aa8ea22038817e.zip
fluxbox_paul-6beb1f96b25cd4ce23395d6666aa8ea22038817e.tar.bz2
Process all asciidoc-generated man pages with sed
This makes things a bit simpler and more generic.
Diffstat (limited to 'doc/asciidoc/Makefile')
-rw-r--r--doc/asciidoc/Makefile21
1 files changed, 15 insertions, 6 deletions
diff --git a/doc/asciidoc/Makefile b/doc/asciidoc/Makefile
index 646d415..95c5ee9 100644
--- a/doc/asciidoc/Makefile
+++ b/doc/asciidoc/Makefile
@@ -2,25 +2,34 @@
2# create manpages from the asciidoc files 2# create manpages from the asciidoc files
3# 3#
4 4
5SRC1 = fluxbox.txt fluxbox-keys.txt fluxbox-remote.txt 5SRC1 = fluxbox.txt fluxbox-remote.txt
6SRC5 = fluxbox-keys.txt fluxbox-apps.txt fluxbox-style.txt 6SRC5 = fluxbox-keys.txt fluxbox-apps.txt fluxbox-style.txt
7 7
8MAN = $(SRC1:.txt=.1) $(SRC5:.txt=.5) 8MAN = $(SRC1:.txt=.1.in) $(SRC5:.txt=.5.in)
9 9
10all : $(MAN) 10all: $(MAN)
11
12install-above: all
13 cp $(MAN) ../
11 14
12clean: 15clean:
13 rm -fv $(MAN) 16 rm -fv $(MAN)
14 17
15%.xml : %.txt
16 asciidoc -b docbook -d manpage -o $@ $<
17
18%.1 : %.xml 18%.1 : %.xml
19 xmlto man $< 19 xmlto man $<
20 20
21%.5 : %.xml 21%.5 : %.xml
22 xmlto man $< 22 xmlto man $<
23 23
24%.1.in: %.1
25 cp $< $@
26
27%.5.in: %.5
28 cp $< $@
29
30%.xml : %.txt
31 asciidoc -b docbook -d manpage -o $@ $<
32
24# Dependencies: 33# Dependencies:
25# 34#
26# fluxbox-apps(5) and fluxbox-keys(5) both include client-patterns.txt 35# fluxbox-apps(5) and fluxbox-keys(5) both include client-patterns.txt