make/sanity-rules.gmk

changeset 408
28f2fe471725
parent 354
0b615980879e
child 645
5b0b6ef58dbf
equal deleted inserted replaced
402:1533dfab9903 408:28f2fe471725
36 ifeq ($(BUILD_DEPLOY), true) 36 ifeq ($(BUILD_DEPLOY), true)
37 sanity:: deploy-sanity 37 sanity:: deploy-sanity
38 endif 38 endif
39 39
40 ifeq ($(BUILD_JDK), true) 40 ifeq ($(BUILD_JDK), true)
41 sanity:: jdk-sanity 41 sanity:: jdk-sanity
42 endif 42 endif
43 43
44 # Only need these sanity rules when not doing a debug build 44 # Only need these sanity rules when not doing a debug build
45 ifeq ($(DEBUG_NAME),) 45 ifeq ($(DEBUG_NAME),)
46 46
62 @$(prep-target) 62 @$(prep-target)
63 63
64 purge-sanity: $(ERROR_FILE) $(WARNING_FILE) $(MESSAGE_FILE) 64 purge-sanity: $(ERROR_FILE) $(WARNING_FILE) $(MESSAGE_FILE)
65 -@$(RM) $(ERROR_FILE) $(WARNING_FILE) $(MESSAGE_FILE) 65 -@$(RM) $(ERROR_FILE) $(WARNING_FILE) $(MESSAGE_FILE)
66 66
67 pre-sanity: purge-sanity 67 pre-sanity: purge-sanity
68 68
69 # this should be the last rule in any target's sanity rule. 69 # this should be the last rule in any target's sanity rule.
70 post-sanity post-sanity-hotspot post-sanity-jdk post-sanity-install post-sanity-deploy: 70 post-sanity post-sanity-hotspot post-sanity-jdk post-sanity-install post-sanity-deploy:
71 @if [ -r $(MESSAGE_FILE) ]; then \ 71 @if [ -r $(MESSAGE_FILE) ]; then \
72 $(ECHO) "" ; \ 72 $(ECHO) "" ; \
130 %.do_not_set: 130 %.do_not_set:
131 @$(ECHO) "ERROR: Your build environment has the variable\n" \ 131 @$(ECHO) "ERROR: Your build environment has the variable\n" \
132 " $* defined. Please unset it and restart your build. \n" \ 132 " $* defined. Please unset it and restart your build. \n" \
133 "" >> $(ERROR_FILE) 133 "" >> $(ERROR_FILE)
134 134
135 # Check the environment variables 135 # Check the environment variables
136 environment: $(DO_NOT_SET_LIST:%=%.do_not_set) 136 environment: $(DO_NOT_SET_LIST:%=%.do_not_set)
137 ifeq ($(LANGTOOLS_SRC_AVAILABLE), true) 137 ifeq ($(LANGTOOLS_SRC_AVAILABLE), true)
138 ifneq ($(BUILD_LANGTOOLS), true) 138 ifneq ($(BUILD_LANGTOOLS), true)
139 @$(ECHO) "WARNING: You are not building the LANGTOOLS sources.\n" \ 139 @$(ECHO) "WARNING: You are not building the LANGTOOLS sources.\n" \
140 " Lang tools (javac) will be obtained from \n" \ 140 " Lang tools (javac) will be obtained from \n" \
203 @$(ECHO) "WARNING: You are not building the SPONSORS sources.\n" \ 203 @$(ECHO) "WARNING: You are not building the SPONSORS sources.\n" \
204 "" >> $(WARNING_FILE) 204 "" >> $(WARNING_FILE)
205 endif 205 endif
206 endif 206 endif
207 ifeq ($(GENERATE_DOCS),false) 207 ifeq ($(GENERATE_DOCS),false)
208 @$(ECHO) "WARNING: This build does not include running javadoc.\n" \ 208 @$(ECHO) "WARNING: This build does not include generating javadoc.\n" \
209 "" >> $(WARNING_FILE)
210 endif
211 ifdef NO_DEMOS
212 @$(ECHO) "WARNING: This build and any install images will not include demos.\n" \
213 "" >> $(WARNING_FILE)
214 endif
215 ifdef NO_SAMPLES
216 @$(ECHO) "WARNING: This build and any install images will not include samples.\n" \
209 "" >> $(WARNING_FILE) 217 "" >> $(WARNING_FILE)
210 endif 218 endif
211 ifdef NO_IMAGES 219 ifdef NO_IMAGES
212 @$(ECHO) "WARNING: Your build environment has the variable NO_IMAGES\n" \ 220 @$(ECHO) "WARNING: Your build environment has the variable NO_IMAGES\n" \
213 " defined. This will result in a development-only\n" \ 221 " defined. This will result in a development-only\n" \
229 ifneq ($(PLATFORM), windows) 237 ifneq ($(PLATFORM), windows)
230 ifndef HOSTNAME 238 ifndef HOSTNAME
231 HOSTNAME := $(shell hostname) 239 HOSTNAME := $(shell hostname)
232 endif 240 endif
233 endif 241 endif
234 settings:: 242 settings::
235 @$(ECHO) "Build Machine Information:" >> $(MESSAGE_FILE) 243 @$(ECHO) "Build Machine Information:" >> $(MESSAGE_FILE)
236 ifeq ($(PLATFORM), windows) 244 ifeq ($(PLATFORM), windows)
237 @$(ECHO) " build machine = $(COMPUTERNAME)" >> $(MESSAGE_FILE) 245 @$(ECHO) " build machine = $(COMPUTERNAME)" >> $(MESSAGE_FILE)
238 else 246 else
239 @$(ECHO) " build machine = $(HOSTNAME)" >> $(MESSAGE_FILE) 247 @$(ECHO) " build machine = $(HOSTNAME)" >> $(MESSAGE_FILE)

mercurial