summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-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