diff options
Diffstat (limited to 'doc/asciidoc/Makefile')
-rw-r--r-- | doc/asciidoc/Makefile | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/doc/asciidoc/Makefile b/doc/asciidoc/Makefile index 944c701..666d437 100644 --- a/doc/asciidoc/Makefile +++ b/doc/asciidoc/Makefile | |||
@@ -2,21 +2,36 @@ | |||
2 | # create manpages from the asciidoc files | 2 | # create manpages from the asciidoc files |
3 | # | 3 | # |
4 | 4 | ||
5 | SRC1 = fluxbox.txt fluxstyle.txt fluxbox-keys.txt fluxbox-remote.txt | 5 | SRC1 = fluxbox.txt fluxbox-remote.txt fbrun.txt fbsetbg.txt fbsetroot.txt startfluxbox.txt |
6 | SRC5 = fluxbox-keys.txt | 6 | SRC5 = fluxbox-keys.txt fluxbox-apps.txt fluxbox-style.txt fluxbox-menu.txt |
7 | 7 | ||
8 | MAN = $(SRC1:.txt=.1) $(SRC5:.txt=.5) | 8 | MAN = $(SRC1:.txt=.1) $(SRC5:.txt=.5) |
9 | MANdotIN = $(addsuffix .in,$(MAN)) | ||
10 | DISTFILES = $(addprefix ../,$(MANdotIN)) | ||
11 | |||
12 | all: $(MAN) | ||
13 | |||
14 | dist: $(DISTFILES) | ||
9 | 15 | ||
10 | all : $(MAN) | ||
11 | clean: | 16 | clean: |
12 | rm -fv $(MAN) | 17 | rm -fv $(MAN) |
13 | 18 | ||
14 | %.xml : %.txt | ||
15 | asciidoc -b docbook -d manpage -o $@ $< | ||
16 | |||
17 | %.1 : %.xml | 19 | %.1 : %.xml |
18 | xmlto man $< | 20 | xmlto man $< |
19 | 21 | ||
20 | %.5 : %.xml | 22 | %.5 : %.xml |
21 | xmlto man $< | 23 | xmlto man $< |
22 | 24 | ||
25 | ../%.1.in: %.1 | ||
26 | cp $< $@ | ||
27 | |||
28 | ../%.5.in: %.5 | ||
29 | cp $< $@ | ||
30 | |||
31 | %.xml : %.txt | ||
32 | asciidoc -b docbook -d manpage -o $@ $< | ||
33 | |||
34 | # Dependencies: | ||
35 | # | ||
36 | # fluxbox-apps(5) and fluxbox-keys(5) both include client-patterns.txt | ||
37 | fluxbox-keys.5 fluxbox-apps.5: client-patterns.txt | ||