From 248292905ea424a5bec18c34cb056b60bb813a76 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sun, 25 Nov 2018 16:33:21 +0100 Subject: Add jar recipe in Makefile, move res folder inside package MapLoader was update accordingly to load maps as resources --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1f1c3b3..76e4582 100644 --- a/Makefile +++ b/Makefile @@ -28,18 +28,23 @@ endif # recipes -.PHONY: all run pack classes dirs clean +.PHONY: all run jar classes dirs clean all: classes classes: dirs $(JAVAC) $(JAVAC_ARGS) -d build $(SOURCES) + # copy resources folder + cp -r src/subconscious/res build/subconscious/res .ONESHELL: run: classes cd build $(JAVA) $(JAVA_ARGS) $(MAINCLASS) -# TODO: recipe for jar file +.ONESHELL: +jar: classes + cd build + jar cfm subconscious.jar ../manifest.txt `find . -type f` dirs: mkdir -p build -- cgit v1.2.1