documentation make fix
Francois Gouget
fgouget at free.fr
Tue Aug 21 07:53:31 CDT 2001
On Tue, 21 Aug 2001, Mike McCormack wrote:
>
> Not that anybody uses the documentation anyway... :-)
>
> ChangeLog:
> * recurse all directories when making docs.
> Don't fail if C_SRCS is empty.
Maybe the attached patch would be a better way to do this:
- use the regular make trick for recursing
- test whether we have targets before entering the for loop
Note that I did not really test it.
Well, I have done a little testing now. And c2man is not happy if you
don't create documentation/man3w beforehand...
So I added an mkdir too, same for doc-html.
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
"Utilisateur" (nom commun) :
Mot utilisé par les informaticiens en lieu et place d'"idiot".
-------------- next part --------------
Index: Make.rules.in
===================================================================
RCS file: /home/wine/wine/Make.rules.in,v
retrieving revision 1.90
diff -u -r1.90 Make.rules.in
--- Make.rules.in 2001/07/29 20:20:13 1.90
+++ Make.rules.in 2001/08/21 11:47:37
@@ -246,11 +246,17 @@
# 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
More information about the wine-devel
mailing list