From 441f1f17784acd900f168669ec630794b5c58190 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Thu, 28 Apr 2005 06:31:13 +0000 Subject: [PATCH] Build html from man pages --- Makefile | 8 +++++++- docs/Makefile | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100755 docs/Makefile diff --git a/Makefile b/Makefile index 1489d81..8a042e0 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ include GNUmakef.def -.PHONY: all clean distclean dirs sourcelists deps +.PHONY: all clean distclean dirs sourcelists deps docs LIBS=gall gcfg gmb3 glibc uulib smblib msgidlib EXECUTABLES=golded3 goldnode rddt @@ -10,6 +10,7 @@ EXECUTABLES=golded3 goldnode rddt all: sourcelists @$(SHELL) -ec 'for i in $(foreach dir,$(LIBS),goldlib/$(dir)); do cd $$i; $(MAKE) all; cd ../..; done' @$(SHELL) -ec 'for i in $(EXECUTABLES); do cd $$i; $(MAKE) all; cd ..; done' + @echo To build HTML man pages run "make docs". clean: @$(SHELL) -ec 'for i in $(foreach dir,$(LIBS),goldlib/$(dir)); do cd $$i; $(MAKE) clean; cd ../..; done' @@ -25,3 +26,8 @@ sourcelists: dirs @$(SHELL) -ec 'for i in $(foreach dir,$(LIBS),goldlib/$(dir)); do cd $$i; $(MAKE) sourcelist; cd ../..; done' @$(SHELL) -ec 'for i in $(EXECUTABLES); do cd $$i; $(MAKE) sourcelist; cd ..; done' @echo -n >$(OBJPATH)/$(PLATFORM)/source.lst + +docs: +ifdef MINGW + @cd $@ ; $(MAKE) all ; cd .. +endif diff --git a/docs/Makefile b/docs/Makefile new file mode 100755 index 0000000..7a1a5c2 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,8 @@ +# -*- makefile to build documentation-*- + +all: html-doc + +html-doc: golded.html goldnode.html rddt.html + +%.html: %.1 + groff -Thtml -mman $< >$@