diff options
author | Jim Ramsay <i.am@jimramsay.com> | 2009-02-18 01:52:35 (GMT) |
---|---|---|
committer | Jim Ramsay <i.am@jimramsay.com> | 2009-05-26 20:16:06 (GMT) |
commit | 6beb1f96b25cd4ce23395d6666aa8ea22038817e (patch) | |
tree | f7b764e1b7220b75cecb35dece73e31a4b33db6e /doc/asciidoc | |
parent | bd8275b33cec5b0765b93e8905bfefcdfd994b73 (diff) | |
download | fluxbox_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')
-rw-r--r-- | doc/asciidoc/Makefile | 21 |
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 | ||
5 | SRC1 = fluxbox.txt fluxbox-keys.txt fluxbox-remote.txt | 5 | SRC1 = fluxbox.txt fluxbox-remote.txt |
6 | SRC5 = fluxbox-keys.txt fluxbox-apps.txt fluxbox-style.txt | 6 | SRC5 = fluxbox-keys.txt fluxbox-apps.txt fluxbox-style.txt |
7 | 7 | ||
8 | MAN = $(SRC1:.txt=.1) $(SRC5:.txt=.5) | 8 | MAN = $(SRC1:.txt=.1.in) $(SRC5:.txt=.5.in) |
9 | 9 | ||
10 | all : $(MAN) | 10 | all: $(MAN) |
11 | |||
12 | install-above: all | ||
13 | cp $(MAN) ../ | ||
11 | 14 | ||
12 | clean: | 15 | clean: |
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 |