produce jar instead of single .class files
authorkleing
Mon, 12 Apr 2004 23:51:00 +0200
changeset 14539 90c625edaee1
parent 14538 1d9d75a8efae
child 14540 0417e7ed93fd
produce jar instead of single .class files
lib/browser/Makefile
--- a/lib/browser/Makefile	Mon Apr 12 19:54:32 2004 +0200
+++ b/lib/browser/Makefile	Mon Apr 12 23:51:00 2004 +0200
@@ -1,8 +1,17 @@
 # $Id$
 
-all:
-	javac GraphBrowser/GraphBrowser.java GraphBrowser/Console.java
+DST=classes
+
+all: GraphBrowser.jar
+
+GraphBrowser.jar: GraphBrowser/*.java awtUtilities/*.java
+	mkdir -p $(DST)
+	javac -d $(DST) GraphBrowser/GraphBrowser.java GraphBrowser/Console.java
+	jar -C $(DST) -c -f GraphBrowser.jar . 
+	rm -rf $(DST)
 
 clean:
 	rm -f GraphBrowser/*.class
 	rm -f awtUtilities/*.class
+	rm -rf $(DST)
+	rm -f GraphBrowser.jar