The following is a makefile that shows how to compile the code related to the file loader Bean example presented in the section called “File Loader”. All it must do is compile the Java code for the Bean.
all:
$(MAKE) java
$(MAKE) FileOpenTestBean.jar
-$(MAKE) install
# Basic options.
srcdir= .
NO_DEPEND= YES
JAVA_SRCS= fileopentestbean/FileOpenTestBean.java
ALL_CLASSES= fileopentestbean/*.class
include $(TWEEK_BASE_DIR)/share/tweek/tweek.appdefs.mk
# --------------------------------------------------------------
# Application build targets.
# --------------------------------------------------------------
java: $(CLASSES)
FileOpenTestBean.jar: $(JAVA_CLASSES)
$(JAR) cvf $@ $(ALL_CLASSES)
install:
cp FileOpenTestBean.jar $(TWEEK_BASE_DIR)/share/tweek/beans
cp $(srcdir)/FileOpenTestBean.xml \
$(TWEEK_BASE_DIR)/share/tweek/beans
CLOBBER_FILES+= FileOpenTestBean.jar