1TESTCLASSES=\ 2 ./src/com/sleepycat/bind/serial/test/*.java\ 3 ./src/com/sleepycat/bind/test/*.java\ 4 ./src/com/sleepycat/bind/tuple/test/*.java\ 5 ./src/com/sleepycat/collections/test/*.java\ 6 ./src/com/sleepycat/collections/test/serial/*.java\ 7 ./src/com/sleepycat/util/test/*.java \ 8 ./src/com/sleepycat/db/util/*.java 9 10TESTSERIALPATH=com/sleepycat/collections/test/serial/TestSerial 11 12all: dbtest.jar 13 14dbtest.jar: classesdir 15 # Compile the tests and build the test jar 16 javac -classpath "${DB_JAR}${CP_SEP}${REQUIRED_JARS}" \ 17 -d ./classes ${TESTCLASSES} 18 jar cf ./dbtest.jar -C ./classes ./com/sleepycat 19 # Build the original version of TestSerial in the testserial directory 20 mkdir -p "testserial/${TESTSERIALPATH}" 21 cp "./src/${TESTSERIALPATH}.java.original" \ 22 "./testserial/${TESTSERIALPATH}.java" 23 javac -classpath "${DB_JAR}${CP_SEP}${REQUIRED_JARS}" \ 24 -d ./testserial "testserial/${TESTSERIALPATH}.java" 25 26classesdir: 27 [ -d ./classes ] || (mkdir ./classes) 28 29clean: 30 [ -d ./classes ] && rm -rf ./classes 31 [ -f ./dbtest.jar ] && rm ./dbtest.jar 32 [ -d ./testserial ] && rm -rf ./testserial 33 34