From d557c110b60386c0bbc4fb399df3cf06ade19765 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Tue, 10 Jul 2007 19:20:22 +0000 Subject: [PATCH] * added Makefile to turn src/doc/man/*.txt into doc/man/*.1 git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21621 10447126-35f2-4685-b0cf-6dd780d3921f --- src/doc/Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/doc/Makefile 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 $@ $<