diff --git a/src/doc/Makefile b/src/doc/Makefile new file mode 100644 index 0000000..61c04af --- /dev/null +++ b/src/doc/Makefile @@ -0,0 +1,31 @@ +# --- SDE-COPYRIGHT-NOTE-BEGIN --- +# This copyright note is auto-generated by ./scripts/Create-CopyPatch. +# +# Filename: src/doc/Makefile +# Copyright (C) 2007 The OpenSDE Project +# +# More information can be found in the files COPYING and README. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. A copy of the +# GNU General Public License can be found in the file COPYING. +# --- SDE-COPYRIGHT-NOTE-END --- + +DOCDIR=../../doc +MANPAGES=$(addprefix $(DOCDIR)/,$(addsuffix .1,$(basename $(wildcard man/*.txt)))) + +.PHONY: all clean + +all: $(MANPAGES) + +clean: + rm -f *.xml *.1 + +$(DOCDIR)/%.1: %.xml + @echo '[MAN] $@' + @xmlto man -o $(DOCDIR)/man $< + +%.xml: %.txt + @echo '[AD] $<' + @asciidoc -b docbook -d manpage -o $@ $<