Skip to content

Commit

Permalink
Makefile is beautified, JAR generation is added.
Browse files Browse the repository at this point in the history
git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@53 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Jul 14, 2008
1 parent d39ca85 commit ca9abea
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions samples/fl/implementations/java1/Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
include ../include.mk

all: test
all: build jar test

test: TestIO.class TestEvaluator.class
jar: build
jar cf javafl.jar *.class types/*.class

test: build
@echo Testing implementation `pwd`
java -ea TestIO ${factorial} ${temp}
java -cp $$CLASSPATH:havafl.jar -ea TestIO ${factorial} ${temp}
diff ${factorial} ${temp}
rm -f temp.txt
java -ea TestEvaluator ${factorial} ${apply} 120
@echo Done.

build: TestIO.class TestEvaluator.class

TestIO.class: TestIO.java FLParser.java types/*.java
javac TestIO.java

Expand All @@ -28,6 +33,7 @@ clean:
rm -f *~
rm -f types/*~
rm -f *.class
rm -f *.jar
rm -f types/*.class
rm -f *.tokens
rm -f *Lexer.java
Expand Down

0 comments on commit ca9abea

Please sign in to comment.