view Makefile @ 72:45ac459f8752

Backed out changeset 2d7064ff0003 Let me think a bit about this first.
author Mark Wielaard <mark@klomp.org>
date Fri, 09 Dec 2011 01:37:40 +0100
parents 2d7064ff0003
children
line wrap: on
line source

JAVASOURCES = Hello.java World.java Mandelbrot.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