mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Added a variable to configure gnustep-make to build javadoc documentation
each time gnustep-make is run git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@9710 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
209784ffe6
commit
13183e4f7e
1 changed files with 21 additions and 4 deletions
|
@ -205,20 +205,37 @@ endif # LATEX_FILES
|
|||
#
|
||||
ifneq ($(JAVADOC_FILES),)
|
||||
|
||||
internal-doc-all:: before-$(TARGET)-all \
|
||||
$(INTERNAL_doc_NAME)/index.html \
|
||||
after-$(TARGET)-all
|
||||
|
||||
ifeq ($(JAVADOC_SOURCEPATH),)
|
||||
INTERNAL_JAVADOCFLAGS = -sourcepath ./
|
||||
else
|
||||
INTERNAL_JAVADOCFLAGS = -sourcepath ./:$(strip $(JAVADOC_SOURCEPATH))
|
||||
endif
|
||||
|
||||
# incremental compilation with javadoc is not supported - you can only
|
||||
# build once, or always. by default we build only once - use
|
||||
# `JAVADOC_BUILD_ALWAYS = YES' to force rebuilding it always
|
||||
|
||||
ifneq ($(JAVADOC_BUILD_ALWAYS),YES) # Build only once
|
||||
|
||||
internal-doc-all:: before-$(TARGET)-all \
|
||||
$(INTERNAL_doc_NAME)/index.html \
|
||||
after-$(TARGET)-all
|
||||
$(INTERNAL_doc_NAME)/index.html:
|
||||
$(MKDIRS) $(INTERNAL_doc_NAME); \
|
||||
$(JAVADOC) $(ALL_JAVADOCFLAGS) $(JAVADOC_FILES) -d $(INTERNAL_doc_NAME)
|
||||
|
||||
else # Build always
|
||||
|
||||
internal-doc-all:: before-$(TARGET)-all \
|
||||
generate-javadoc \
|
||||
after-$(TARGET)-all
|
||||
generate-javadoc:
|
||||
$(MKDIRS) $(INTERNAL_doc_NAME); \
|
||||
$(JAVADOC) $(ALL_JAVADOCFLAGS) $(JAVADOC_FILES) -d $(INTERNAL_doc_NAME)
|
||||
|
||||
endif
|
||||
|
||||
|
||||
endif # JAVADOC_FILES
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue