Mercurial > hg > ristipolku
diff Makefile @ 1:44f1e7b47fcf
Preliminary work ... puuh.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 28 Jan 2011 16:34:53 +0200 |
parents | |
children | 1785f66a7beb |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Fri Jan 28 16:34:53 2011 +0200 @@ -0,0 +1,33 @@ +# Settings, directories +RUN=gfxtest.class +TARGETS=$(RUN) +SUBDIR=game + +# Utils +JAVAC=javac -g +APPLETVIEWER=appletviewer + +### +### Targets +### +all: $(TARGETS) + +gfxtest.class: game/Piece.class game/PieceType.class + +%.class: %.java + $(JAVAC) $< + + +run: $(RUN) + $(APPLETVIEWER) $(patsubst %.class,%.html,$<) + + +clean: + $(RM) $(TARGETS) *.class $(SUBDIR)/*.class + + +srcclean: clean + $(RM) *~ $(SUBDIR)/*~ + + +# dummy