view Makefile @ 119:b9429c35357f default tip master

test push
author lbourges
date Thu, 18 Oct 2018 16:14:05 +0200
parents 45ac459f8752
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