changeset 13:562744de803c

Work.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 30 Jan 2011 01:49:43 +0200
parents c4cd811813ef
children ae717d7d05ae
files Makefile index.html
diffstat 2 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Jan 30 01:12:14 2011 +0200
+++ b/Makefile	Sun Jan 30 01:49:43 2011 +0200
@@ -1,7 +1,9 @@
 # Settings, directories
 RUN=Ristipolku.class
+
+RESOURCES=graphics/board.png
+
 CLASSES=game/Piece.class game/PieceType.class game/Engine.class game/Interpolate.class
-TARGETS=$(RUN) $(CLASSES)
 
 # Utils
 JAVAC=javac -g
@@ -10,6 +12,8 @@
 ###
 ### Targets
 ###
+TARGETS=$(RUN) $(CLASSES)
+
 all: $(TARGETS)
 
 
@@ -30,8 +34,9 @@
 ###
 ### Package
 ###
-Ristipolku.jar: $(RUN) $(CLASSES)
-	
+Ristipolku.jar: $(RUN) $(CLASSES) $(RESOURCES)
+	jar cvf $@ $+
+
 
 upload: index.html Ristipolku.jar
 	@scp $+ ccr@tnsp.org:public_html/ristipolku/
@@ -47,6 +52,4 @@
 srcclean: clean
 	$(RM) *~ game/*~ graphics/*~
 
-
-
 # dummy
--- a/index.html	Sun Jan 30 01:12:14 2011 +0200
+++ b/index.html	Sun Jan 30 01:49:43 2011 +0200
@@ -20,7 +20,6 @@
  </script>
 </head>
 <body>
-<h1>Ristipolku</h1>
-<applet code="Ristipolku.java" width="640" height="480"></applet>
+<applet code="Ristipolku.class" archive="Ristipolku.jar" width="800" height="600"></applet>
 </body>
 </html>