--- projects/cms/source/server/Makefile.inc 2000/12/12 01:53:55 1.1.2.3 +++ projects/cms/source/server/Makefile.inc 2000/12/13 18:34:09 1.2 @@ -1,21 +1,22 @@ # Include Makefile for the server -# $Id: Makefile.inc,v 1.1.2.3 2000/12/12 01:53:55 tdb Exp $ +# $Id: Makefile.inc,v 1.2 2000/12/13 18:34:09 tdb Exp $ ## Rule to CVS update the files update : cvs -q -d $(CVSROOT) update -## General rule for building a class file -%.class : %.java - javac -g:none -O -classpath $(JCCLASSPATH) -d $(BUILD) $< +## Rule for making and compiling the IDL files +$(IDLCHECK) : $(SERVERROOT)/idl/iscream.idl + cd $(SERVERROOT)/idl && $(MAKE) build + rm -f $(COMPILECHECK) -## How to generate the IDL files -IDLMAKE = cd $(SERVERROOT) && $(MAKE) buildidl - -## Rule for making the IDL files -$(IDL) : $(SERVERROOT)/idl/iscream.idl - $(IDLMAKE) - ## General Build Rule for Java Files -DOBUILD : $(IDL) $(CLASS) +DOBUILD : $(IDLCHECK) $(COMPILECHECK) + +$(COMPILECHECK) : $(JAVA) + javac -g:none -O -classpath $(JCCLASSPATH) -d $(BUILD) $? @touch $(BUILDCHECK) + @touch $(COMPILECHECK) + +DOCLEAN : + rm -f $(COMPILECHECK)