include env.mk SRC = src JCFLAGS = -target 1.1 -source 1.2 -sourcepath $(SRC) -cp $(HEADERS) -Xlint:-options -d build -g:none SRC_DIR := src OUT_DIR := build SRCS := $(wildcard $(SRC_DIR)/*/*.java) CLS := $(SRCS:$(SRC_DIR)/%.java=$(OUT_DIR)/%.class) .SUFFIXES: .java .PHONY: all clean all: $(CLS) $(CLS): $(OUT_DIR)/%.class: $(SRC_DIR)/%.java mkdir -p build $(JC) $(JCFLAGS) $< clean: rm -rf build/ rm -f result.jar pack: jar -cmf META-INF/MANIFEST.MF result.jar -C build . -C res . run: $(EMULATOR) result.jar