SHELL = sh PACKAGE = JavaTransaction JC = javac JAVAFLAGS = -deprecation RMIC = rmic .SUFFIXES: .java .class JAVA_FILES = \ RMClient.java\ ResourceManager.java\ ResourceManagerImpl.java \ InvalidTransactionException.java \ TransactionAbortedException.java .precious: $(JAVA_FILES) CLASS_FILES = $(JAVA_FILES:.java=.class) # Group_Stub.class STUB_FILES = \ ResourceManagerImpl_Stub.class ########################## # Make Targets # ########################## all: dummy $(CLASS_FILES) $(STUB_FILES) normic: dummy $(CLASS_FILES) clean: rm -f *.class core dummy: @echo "Making package " $(PACKAGE) RESOURCEMANAGERFILES = ResourceManager.java \ InvalidTransactionException.java \ TransactionAbortedException.java ResourceManager.class: $(RESOURCEMANAGERFILES) $(JC) $(JAVAFLAGS) $(RESOURCEMANAGERFILES) RMCLIENTFILES = ResourceManager.java \ RMClient.java \ InvalidTransactionException.java \ TransactionAbortedException.java RMClient.class: $(RMCLIENTFILES) $(JC) $(JAVAFLAGS) $(RMCLIENTFILES) RESOURCEMANAGERIMPLFILES = ResourceManagerImpl.java \ ResourceManager.java \ InvalidTransactionException.java \ TransactionAbortedException.java ResourceManagerImpl.class: $(RESOURCEMANAGERIMPLFILES) $(JC) $(JAVAFLAGS) $(RESOURCEMANAGERIMPLFILES) #.java.class: #$(JC) $(JAVAFLAGS) $? %_Stub.class: %.class @echo Be sure to set CLASSPATH to the name of the directory above. $(RMIC) $(?:%.class=$(PACKAGE).%) # vim:set noexpandtab: