common/makefiles/javadoc/Javadoc.gmk

changeset 594
2e12a508d7ae
parent 592
1129fb75f611
parent 558
d5f3a6f60d51
child 607
12782ec1da5f
equal deleted inserted replaced
593:cecfba251e4a 594:2e12a508d7ae
29 .SUFFIXES: .java 29 .SUFFIXES: .java
30 30
31 # 31 #
32 # Definitions for $(DOCSDIR), $(MKDIR), $(BINDIR), etc. 32 # Definitions for $(DOCSDIR), $(MKDIR), $(BINDIR), etc.
33 # 33 #
34
35 CLASSPATH_SEPARATOR = :
36 34
37 DOCSDIR=$(OUTPUT_ROOT)/docs 35 DOCSDIR=$(OUTPUT_ROOT)/docs
38 TEMPDIR=$(OUTPUT_ROOT)/docstemp 36 TEMPDIR=$(OUTPUT_ROOT)/docstemp
39 37
40 JDK_SHARE_SRC=$(JDK_TOPDIR)/src/share 38 JDK_SHARE_SRC=$(JDK_TOPDIR)/src/share
135 133
136 134
137 # List of all possible directories for javadoc to look for sources 135 # List of all possible directories for javadoc to look for sources
138 # NOTE: Quotes are required around sourcepath argument only on Windows. 136 # NOTE: Quotes are required around sourcepath argument only on Windows.
139 # Otherwise, you get "No packages or classes specified." due 137 # Otherwise, you get "No packages or classes specified." due
140 # to $(CLASSPATH_SEPARATOR) being interpreted as an end of 138 # to $(PATH_SEP) being interpreted as an end of
141 # command (newline or shell ; character) 139 # command (newline or shell ; character)
142 ALL_SOURCE_DIRS = $(JDK_SHARE_CLASSES) \ 140 ALL_SOURCE_DIRS = $(JDK_SHARE_CLASSES) \
143 $(JDK_IMPSRC) \ 141 $(JDK_IMPSRC) \
144 $(JDK_GENSRC) \ 142 $(JDK_GENSRC) \
145 $(JDK_OUTPUTDIR)/gendocsrc_rmic \ 143 $(JDK_OUTPUTDIR)/gendocsrc_rmic \
152 150
153 # List with classpath separator between them 151 # List with classpath separator between them
154 EMPTY:= 152 EMPTY:=
155 SPACE:= $(EMPTY) $(EMPTY) 153 SPACE:= $(EMPTY) $(EMPTY)
156 RELEASEDOCS_SOURCEPATH = \ 154 RELEASEDOCS_SOURCEPATH = \
157 $(subst $(SPACE),$(CLASSPATH_SEPARATOR),$(strip $(ALL_SOURCE_DIRS))) 155 $(subst $(SPACE),$(PATH_SEP),$(strip $(ALL_SOURCE_DIRS)))
158 156
159 define prep-target 157 define prep-target
160 $(MKDIR) -p $(@D) 158 $(MKDIR) -p $(@D)
161 $(RM) $@ 159 $(RM) $@
162 endef 160 endef

mercurial