summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-11-25 16:33:21 +0100
committerNao Pross <naopross@thearcway.org>2018-11-25 16:33:21 +0100
commit248292905ea424a5bec18c34cb056b60bb813a76 (patch)
tree87d0527d11b81d053bc8bc97d0afb56fa85f949b /Makefile
parentRemove super dangerous pack recipe from makefile (diff)
downloadSubconscious-java-248292905ea424a5bec18c34cb056b60bb813a76.tar.gz
Subconscious-java-248292905ea424a5bec18c34cb056b60bb813a76.zip
Add jar recipe in Makefile, move res folder inside package
MapLoader was update accordingly to load maps as resources
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
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