diff options
author | Nao Pross <naopross@thearcway.org> | 2018-11-25 16:33:21 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-11-25 16:33:21 +0100 |
commit | 248292905ea424a5bec18c34cb056b60bb813a76 (patch) | |
tree | 87d0527d11b81d053bc8bc97d0afb56fa85f949b /Makefile | |
parent | Remove super dangerous pack recipe from makefile (diff) | |
download | Subconscious-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-- | Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |