view Makefile @ 26:3d4cc47df31a

Cleanups, fix piece rendering and rotation.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 01 Feb 2011 19:18:25 +0200
parents bbac3e4a4b9b
children 26adc2827983
line wrap: on
line source

# Settings, directories
RUN=Ristipolku.class

RESOURCES=graphics/*.png graphics/*.jpg graphics/font.ttf sounds/*.wav

CLASSES=game/Piece.class game/PieceType.class game/Engine.class game/Interpolate.class game/ResourceLoader.class

# Utils
JAVAC=javac -g
APPLETVIEWER=appletviewer

###
### Targets
###
TARGETS=$(RUN)

all: $(TARGETS)

game/%.class: game/%.java
	$(JAVAC) $<

Ristipolku.class: Ristipolku.java $(CLASSES)
	$(JAVAC) $<


run: $(RUN)
	$(APPLETVIEWER) $(patsubst %.class,%.html,$<)


###
### Package
###
Ristipolku.jar: $(RUN) $(CLASSES) $(RESOURCES)
	jar cvfm $@ manifest.txt $+


upload: Ristipolku.jar
	@scp $+ ccr@tnsp.org:public_html/ristipolku/
	$(RM) $<


###
### Cleanup
###
clean:
	$(RM) $(TARGETS) *.class game/*.class


srcclean: clean
	$(RM) *~ game/*~ graphics/*~

# dummy