Fixed rules for auto documentation (reported by Vincent Béron).

This commit is contained in:
Alexandre Julliard 2003-04-12 00:05:27 +00:00
parent efc069cbb3
commit 78e3311197
3 changed files with 42 additions and 13 deletions

View File

@ -67,25 +67,16 @@ crosstest:: $(SUBDIRS:%=%/__crosstest__)
# Rules for auto documentation
$(SUBDIRS:%=%/__man__): dummy
cd `dirname $@` && $(MAKE) man
man: $(C_SRCS) $(SUBDIRS:%=%/__man__)
man: $(C_SRCS)
$(C2MAN) -o $(TOPOBJDIR)/documentation/man$(api_manext) -R$(TOPOBJDIR) -S$(api_manext) $(DIVINCL) $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
$(SUBDIRS:%=%/__doc_html__): dummy
cd `dirname $@` && $(MAKE) doc-html
doc-html: $(C_SRCS) $(SUBDIRS:%=%/__doc_html__)
doc-html: $(C_SRCS)
$(C2MAN) -o $(TOPOBJDIR)/documentation/html -R$(TOPOBJDIR) $(DIVINCL) -Th $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
$(SUBDIRS:%=%/__doc_sgml__): dummy
cd `dirname $@` && $(MAKE) doc-sgml
doc-sgml: $(C_SRCS) $(SUBDIRS:%=%/__doc_sgml__)
doc-sgml: $(C_SRCS)
$(C2MAN) -o $(TOPOBJDIR)/documentation/api-guide -R$(TOPOBJDIR) $(DIVINCL) -Ts $(MAINSPEC:%=-w %) $(SPEC_SRCS16:%=-w %) $(C_SRCS) $(C_SRCS16)
.PHONY: man doc-html doc-sgml $(SUBDIRS:%=%/__man__) $(SUBDIRS:%=%/__doc_html__) $(SUBDIRS:%=%/__doc_sgml__)
.PHONY: man doc-html doc-sgml
# Sanity check

View File

@ -1568,6 +1568,25 @@ install install-lib:: $(INSTALLSUBDIRS:%=%/__install__)
$(LN_S) $(dlldir)/ntdll.dll$(DLLEXT) libntdll.dll.$(LIBEXT); \
fi
# Rules for auto documentation
$(SUBDIRS:%=%/__man__): dummy
cd `dirname $@` && $(MAKE) man
man: $(SUBDIRS:%=%/__man__)
$(SUBDIRS:%=%/__doc_html__): dummy
cd `dirname $@` && $(MAKE) doc-html
doc-html: $(SUBDIRS:%=%/__doc_html__)
$(SUBDIRS:%=%/__doc_sgml__): dummy
cd `dirname $@` && $(MAKE) doc-sgml
doc-sgml: $(SUBDIRS:%=%/__doc_sgml__)
.PHONY: man doc-html doc-sgml $(SUBDIRS:%=%/__man__) $(SUBDIRS:%=%/__doc_html__) $(SUBDIRS:%=%/__doc_sgml__)
# Misc rules
install install-dev:: $(IMPORT_LIBS:%=%.$(IMPLIBEXT))

View File

@ -312,6 +312,25 @@ print NEWMAKE "\tfi\n\n";
# makefile trailer
print NEWMAKE <<EOF;
# Rules for auto documentation
\$(SUBDIRS:%=%/__man__): dummy
cd `dirname \$@` && \$(MAKE) man
man: \$(SUBDIRS:%=%/__man__)
\$(SUBDIRS:%=%/__doc_html__): dummy
cd `dirname \$@` && \$(MAKE) doc-html
doc-html: \$(SUBDIRS:%=%/__doc_html__)
\$(SUBDIRS:%=%/__doc_sgml__): dummy
cd `dirname \$@` && \$(MAKE) doc-sgml
doc-sgml: \$(SUBDIRS:%=%/__doc_sgml__)
.PHONY: man doc-html doc-sgml \$(SUBDIRS:%=%/__man__) \$(SUBDIRS:%=%/__doc_html__) \$(SUBDIRS:%=%/__doc_sgml__)
# Misc rules
install install-dev:: \$(IMPORT_LIBS:%=%.\$(IMPLIBEXT))