# # ex:set noexpandtab: # JUNIT_JAR=./lib/junit.jar MYSQL_JAR=./lib/mysql-connector-java-3.1.12-bin.jar # We assemble everything into the poly_db folder # A big flat splatter of polyomino tools, for now # BUILD=./ThePolyominoDatabase BIN=./bin EE = echo `date` --- E = @$(EE) # some makefile! just make the jar ok? $(BUILD)/omino.jar : src $(BUILD) $(BIN) $(E) Javac all the .java @javac `find . -name '*.java'` -classpath $(JUNIT_JAR) -d $(BIN) $(E) Jarring... @jar cf $@ -C $(BIN) omino @ echo . ; ls -l $@ ; echo . $(E) Done Jarring $@ $(BUILD) : $(E) Mkdir $@/ @mkdir $(BUILD) @mkdir $(BUILD)/lib $(BIN) : $(E) Mkdir $@/ @mkdir $(BIN) clean : $(E) Cleaning @rm -rf $(BIN) @rm -rf $(BUILD) @rm -f omino.jar kit: $(BUILD)/omino.jar $(E) Gathering lib/ @cp -f $(JUNIT_JAR) $(MYSQL_JAR) $(BUILD)/lib $(E) Gathering scripts... @cp -f scripts/[a-z]* $(BUILD) @chmod +x $(BUILD)/omino put: kit $(E) Copying into $(putPlace) @if [ -d "$(putPlace)" ] ;\ then \ cp -rf $(BUILD)/* $(putPlace) ;\ fi # end of file