aboutsummaryrefslogtreecommitdiff
path: root/doc/asciidoc/Makefile
blob: 0e084e828c9cd4e07ba7f144e87f775e39b67680 (plain)
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
#
# create manpages from the asciidoc files
#

SRC1 = \
	fbrun.txt \
	fbsetbg.txt \
	fbsetroot.txt \
	fluxbox-remote.txt \
	fluxbox.txt \
	startfluxbox.txt

SRC5 = \
	fluxbox-apps.txt \
	fluxbox-keys.txt \
	fluxbox-menu.txt \
	fluxbox-style.txt

MAN = \
	$(SRC1:.txt=.1) \
	$(SRC5:.txt=.5)

MANdotIN = $(addsuffix .in,$(MAN))
DISTFILES = $(addprefix ../,$(MANdotIN))

all: $(MAN)

dist: $(DISTFILES)

clean:
	rm -fv $(MAN)

%.1 : %.xml
	xmlto man $<

%.5 : %.xml
	xmlto man $<

../%.1.in: %.1
	cp $< $@

../%.5.in: %.5
	cp $< $@

%.xml : %.txt
	asciidoc -b docbook -d manpage -o $@ $<

# Dependencies:
#
# fluxbox-apps(5) and fluxbox-keys(5) both include client-patterns.txt
fluxbox-keys.5 fluxbox-apps.5: client-patterns.txt