fluxbox/doc/asciidoc/Makefile
Sami Kerola 7541054b29 build-sys: move to non-recursive build
This rather large change will attempts to make 'make' to work better.
See excellent paper 'Recursive Make Considered Harmful' by Peter Miller
for further explanation why several make files is worse than one for
whole project.

Note.  The tests are build with 'make check' rather than defining TEST.

Reference: http://miller.emu.id.au/pmiller/books/rmch/
Reference: http://karelzak.blogspot.co.uk/2013/02/non-recursive-automake.html
2013-05-26 10:38:11 +01:00

51 lines
726 B
Makefile

#
# 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