CLASSES = SimpleClient.class Proxy.class SearchAllCollections.class all : subdirs $(CLASSES) echo try a command like "java org.nzdl.gsdl.SimpleClient -v 2 -Q" subdirs : (cd service && $(MAKE) all) (cd util && $(MAKE) all) (cd hli && $(MAKE) all) (cd SimpleGraphicalClient && $(MAKE) all) clean: (cd SimpleGraphicalClient && $(MAKE) clean) (cd util && $(MAKE) clean) (cd service && $(MAKE) clean) (cd hli && $(MAKE) clean) rm -f *.class distclean : clean # Instructions for compiling the java files JAVAC=javac #JAVACOPTIONS= -g:lines #JAVACOPTIONS= -g:none -O %.class : %.java $(JAVAC) $(JAVACOPTIONS) $<