558 JFR_EXISTS=$(shell if [ -d $(HS_ALT_SRC) ]; then echo 1; else echo 0; fi) 559 # export jfr.h 560 ifeq ($JFR_EXISTS,1) 561 $(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/% 562 $(install-file) 563 else 564 $(EXPORT_INCLUDE_DIR)/jfr.h: 565 endif 566 567 # Doc files (jvmti.html) 568 $(EXPORT_DOCS_DIR)/platform/jvmti/%: $(DOCS_DIR)/% 569 $(install-file) 570 571 # Xusage file 572 $(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_MINIMAL_DIR)/Xusage.txt: $(XUSAGE) 573 $(prep-target) 574 $(RM) $@.temp 575 $(SED) 's/\(separated by \)[;:]/\1$(PATH_SEP)/g' $< > $@.temp 576 $(MV) $@.temp $@ 577 578 # 579 # Clean rules 580 # 581 clobber clean: clean_build clean_export clean_jdk 582 clean_build: 583 $(RM) -r $(C1_DIR) 584 $(RM) -r $(C2_DIR) 585 $(RM) -r $(CORE_DIR) 586 $(RM) -r $(ZERO_DIR) 587 $(RM) -r $(SHARK_DIR) 588 $(RM) -r $(MINIMAL1_DIR) 589 clean_export: 590 $(RM) -r $(EXPORT_PATH) 591 clean_jdk: 592 $(RM) -r $(JDK_IMAGE_DIR) 593 594 # 595 # Create JDK and place this build into it 596 # 597 create_jdk: copy_jdk update_jdk | 558 JFR_EXISTS=$(shell if [ -d $(HS_ALT_SRC) ]; then echo 1; else echo 0; fi) 559 # export jfr.h 560 ifeq ($JFR_EXISTS,1) 561 $(EXPORT_INCLUDE_DIR)/%: $(HS_ALT_SRC)/share/vm/jfr/% 562 $(install-file) 563 else 564 $(EXPORT_INCLUDE_DIR)/jfr.h: 565 endif 566 567 # Doc files (jvmti.html) 568 $(EXPORT_DOCS_DIR)/platform/jvmti/%: $(DOCS_DIR)/% 569 $(install-file) 570 571 # Xusage file 572 $(EXPORT_SERVER_DIR)/Xusage.txt $(EXPORT_CLIENT_DIR)/Xusage.txt $(EXPORT_MINIMAL_DIR)/Xusage.txt: $(XUSAGE) 573 $(prep-target) 574 $(RM) $@.temp 575 $(SED) 's/\(separated by \)[;:]/\1$(PATH_SEP)/g' $< > $@.temp 576 $(MV) $@.temp $@ 577 578 # Java Flight Recorder 579 $(EXPORT_JRE_LIB_DIR)/jdk/jfr/internal/types/metadata.xml: $(HS_SRC_DIR)/share/vm/jfr/metadata/metadata.xml 580 mkdir -p $(basename $@) 581 cp $< $@ 582 583 # 584 # Clean rules 585 # 586 clobber clean: clean_build clean_export clean_jdk 587 clean_build: 588 $(RM) -r $(C1_DIR) 589 $(RM) -r $(C2_DIR) 590 $(RM) -r $(CORE_DIR) 591 $(RM) -r $(ZERO_DIR) 592 $(RM) -r $(SHARK_DIR) 593 $(RM) -r $(MINIMAL1_DIR) 594 clean_export: 595 $(RM) -r $(EXPORT_PATH) 596 clean_jdk: 597 $(RM) -r $(JDK_IMAGE_DIR) 598 599 # 600 # Create JDK and place this build into it 601 # 602 create_jdk: copy_jdk update_jdk |