view Makefile @ 61:00a8cffb6028

Explain HINT in Makefile check target.
author Mark Wielaard <mark@klomp.org>
date Sun, 27 Feb 2011 00:26:44 +0100
parents 846e4163d583
children 553e63b468ec
line wrap: on
line source

JAVASOURCES = Hello.java
MAINCLASS = Hello

helloworld: ${JAVASOURCES}
	javac ${JAVASOURCES}
	echo "java ${MAINCLASS} \$$1" > helloworld
	chmod 755 helloworld

clean:
	rm -f *.class
	rm -f helloworld

check: helloworld
	echo "Testing helloworld runs and exits with no error"
	echo "HINT: Must at least produce Hello World"
	./helloworld | grep "Hello World"

all: helloworld