# # layman/doc/Makefile # Simple Makefile to rebuild the documentation from the # docbook XML sources # # Copyright (c) 1999-2005 Gentoo Foundation # Released under v2 of the GNU GPL # # Author(s) Stuart Herbert # Renat Lumpau # Gunnar Wrobel # # ======================================================================== MAN_PAGES = layman.8 HTML_PAGES = layman.8.html TMPFILE=./layman.man all: man html html: $(HTML_PAGES) man: $(MAN_PAGES) clean: rm -f $(MAN_PAGES) rm -f $(HTML_PAGES) %.html: %.txt @echo HTML $@ a2x --conf-file=asciidoc.conf --attribute="laymanversion=1.4.1" --format=xhtml "$<" %: %.txt @echo MAN $@ a2x --conf-file=asciidoc.conf --attribute="laymanversion=1.4.1" --format=manpage "$<"