INTEGRATION: CWS sdk02 (1.1.2); FILE ADDED

2003/05/21 14:02:40 jsc 1.1.2.1: #109045# new
This commit is contained in:
Vladimir Glazounov 2003-06-10 09:33:10 +00:00
parent 558e97f91f
commit a00181d15b

View file

@ -0,0 +1,51 @@
# Builds the OfficeDevDisableCommandsTest example of the Developers Guide.
PRJ=../../../..
SETTINGS=$(PRJ)/settings
include $(SETTINGS)/settings.mk
include $(SETTINGS)/std.mk
include $(SETTINGS)/dk.mk
# Define non-platform/compiler specific settings
COMPONENT_NAME=OfficeDevDisableCommandsTest
OUT_COMP_CLASS = $(OUT_CLASS)/$(COMPONENT_NAME)
JAVAFILES = \
DisableCommandsTest.java
CLASSFILES = $(patsubst %.java,$(OUT_COMP_CLASS)/%.class,$(JAVAFILES))
SDK_CLASSPATH = $(subst $(EMPTYSTRING) $(PATH_SEPARATOR),$(PATH_SEPARATOR),$(OFFICE_CLASSES_DIR)/jurt.jar\
$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/unoil.jar\
$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/ridl.jar\
$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/sandbox.jar\
$(PATH_SEPARATOR)$(OFFICE_CLASSES_DIR)/juh.jar\
$(PATH_SEPARATOR)$(OUT_COMP_CLASS))
# Targets
.PHONY: ALL
ALL : OfficeDevDisableCommandsTest
include $(SETTINGS)/stdtarget.mk
$(OUT_COMP_CLASS) : $(OUT)
$(MKDIR) $(subst /,$(PS),$@)
$(CLASSFILES) : $(OUT_COMP_CLASS) $(JAVAFILES)
javac -classpath "$(SDK_CLASSPATH)" -d $(OUT_COMP_CLASS) $(JAVAFILES)
OfficeDevDisableCommandsTest : $(CLASSFILES)
@echo --------------------------------------------------------------------------------
@echo Please use the following command to execute the example!
@echo -
@echo make DisableCommandsTest.run
@echo --------------------------------------------------------------------------------
%.run: $(OUT_COMP_CLASS)/%.class
java -classpath "$(SDK_CLASSPATH)" $(basename $@)
.PHONY: clean
clean :
-$(DELRECURSIVE) $(subst /,$(PS),$(OUT_COMP_CLASS))