Skip to content

Instantly share code, notes, and snippets.

@greghaynes
Created January 30, 2012 07:17
Show Gist options
  • Save greghaynes/1703028 to your computer and use it in GitHub Desktop.
Save greghaynes/1703028 to your computer and use it in GitHub Desktop.
CS321HW1 Make test
JAVA_COMPILER=javac
JAVA_RUNTIME=java
TEST_DIRECTORY=tests
SRCS=sol1.java
all: build test
build: ${SRCS}
${JAVA_COMPILER} ${SRCS}
test:
@for case in ${TEST_DIRECTORY}/*; \
do \
echo "Executing $$case"; \
${JAVA_RUNTIME} Main $$case; \
echo ""; \
done;
clean:
rm *.class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment