Fixed rules for auto documentation (reported by Vincent Béron).
This commit is contained in:
parent
efc069cbb3
commit
78e3311197
|
@ -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
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue