-
Notifications
You must be signed in to change notification settings - Fork 41
/
Makefile
23 lines (16 loc) · 875 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
all: classfiles expr.jar doc/user-doc.html jdoc example/BasicGraphApplet.class example/expr.jar
classfiles:
javac -O expr/*.java
classfiles = $(shell echo expr/{BinaryExpr,Parser,Token,ConditionalExpr,Scanner,UnaryExpr,Expr,SyntaxException,Variable,LiteralExpr}.class)
expr.jar: $(classfiles)
jar cf expr.jar $(classfiles)
doc/user-doc.html: doc/table.awk doc/table.text doc/user-doc.latte doc/style.latte
nawk -f doc/table.awk doc/table.text | cat doc/style.latte - | latte-html >doc/user-doc.html
jdoc:
cd doc; javadoc -classpath .. ../expr/*.java
example/BasicGraphApplet.class: example/BasicGraphApplet.java example/expr.jar
javac -sourcepath example/expr.jar:example example/BasicGraphApplet.java
# We need a copy of expr.jar in the example directory because of
# appletviewer's lame security rules.
example/expr.jar: expr.jar
cp expr.jar example/expr.jar