view 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 source

# 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