From b83bb6dac289acf1206570a75e0011bd132ee5ec Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 22 Aug 2001 18:01:39 +0000 Subject: [PATCH] Fixed man and doc-html rules. --- Make.rules.in | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Make.rules.in b/Make.rules.in index a168fc4f7f5..4118abf3424 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -246,11 +246,17 @@ Makefile: Makefile.in $(TOPSRCDIR)/configure # Rules for auto documentation -man: $(C_SRCS) - for i in $(C_SRCS); do $(C2MAN) -L -o $(TOPOBJDIR)/documentation/man3w -S3w $(DIVINCL) -D__WINE__ $(MANSPECS) $$i; done +$(SUBDIRS:%=%/__man__): dummy + cd `dirname $@` && $(MAKE) man -doc-html: $(C_SRCS) - for i in $(C_SRCS); do $(C2MAN) -L -o $(TOPOBJDIR)/documentation/html -Th -iwindows.h $(DIVINCL) -D__WINE__ $(MANSPECS) $$i; done +man: $(C_SRCS) $(SUBDIRS:%=%/__man__) + if [ -n "$(C_SRCS)" ]; then $(MKDIR) $(TOPOBJDIR)/documentation/man3w; for i in $(C_SRCS); do $(C2MAN) -L -o $(TOPOBJDIR)/documentation/man3w -S3w $(DIVINCL) -D__WINE__ $(MANSPECS) $$i; done; fi + +$(SUBDIRS:%=%/__doc_html__): dummy + cd `dirname $@` && $(MAKE) doc-html + +doc-html: $(C_SRCS) $(SUBDIRS:%=%/__doc_html__) + if [ -n "$(C_SRCS)" ]; then $(MKDIR) $(TOPOBJDIR)/documentation/html; for i in $(C_SRCS); do $(C2MAN) -L -o $(TOPOBJDIR)/documentation/html -Th -iwindows.h $(DIVINCL) -D__WINE__ $(MANSPECS) $$i; done; fi # Rule for linting