38 # Generate into gensrc dir where sources get picked up for javadoc, then move the classes |
38 # Generate into gensrc dir where sources get picked up for javadoc, then move the classes |
39 # into the stub classes dir. |
39 # into the stub classes dir. |
40 $(eval $(call SetupRMICompilation,RMI_GEN, \ |
40 $(eval $(call SetupRMICompilation,RMI_GEN, \ |
41 CLASSES := $(JMX_RMI_CLASSES), \ |
41 CLASSES := $(JMX_RMI_CLASSES), \ |
42 CLASSES_DIR := $(CLASSES_DIR)/java.management, \ |
42 CLASSES_DIR := $(CLASSES_DIR)/java.management, \ |
43 STUB_CLASSES_DIR := $(RMIC_GENSRC_DIR), \ |
43 STUB_CLASSES_DIR := $(RMIC_GENSRC_DIR)/java.management, \ |
44 RUN_V12 := true, \ |
44 RUN_V12 := true, \ |
45 KEEP_GENERATED := true, \ |
45 KEEP_GENERATED := true, \ |
46 )) |
46 )) |
47 |
47 |
48 # Find all classes generated and move them from the gensrc dir to the stub classes dir |
48 # Find all classes generated and move them from the gensrc dir to the stub classes dir |
49 $(RMIC_GENSRC_DIR)/_classes.moved: $(RMI_GEN) |
49 $(RMIC_GENSRC_DIR)/_classes.moved: $(RMI_GEN) |
50 $(eval classfiles := $(shell $(FIND) $(RMIC_GENSRC_DIR) -name "*.class")) |
50 $(eval classfiles := $(shell $(FIND) $(RMIC_GENSRC_DIR) -name "*.class")) |
51 $(foreach src, $(classfiles), \ |
51 $(foreach src, $(classfiles), \ |
52 $(eval target := $(patsubst $(RMIC_GENSRC_DIR)/%, \ |
52 $(eval target := $(patsubst $(RMIC_GENSRC_DIR)/%, \ |
53 $(STUB_CLASSES_DIR)/java.management/%, $(src))) \ |
53 $(STUB_CLASSES_DIR)/%, $(src))) \ |
54 $(MKDIR) -p $(dir $(target)) ; \ |
54 $(MKDIR) -p $(dir $(target)) ; \ |
55 $(MV) $(src) $(target) $(NEWLINE)) |
55 $(MV) $(src) $(target) $(NEWLINE)) |
56 $(TOUCH) $@ |
56 $(TOUCH) $@ |
57 |
57 |
58 ########################################################################################## |
58 ########################################################################################## |