Build html from man pages

This commit is contained in:
Stas Degteff 2005-04-28 06:31:13 +00:00
parent 6e8413f4e1
commit 441f1f1778
2 changed files with 15 additions and 1 deletions

View File

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

8
docs/Makefile Executable file
View File

@ -0,0 +1,8 @@
# -*- makefile to build documentation-*-
all: html-doc
html-doc: golded.html goldnode.html rddt.html
%.html: %.1
groff -Thtml -mman $< >$@