summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-05-24 11:26:02 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-05-24 11:26:02 +0200
commit45920f7ea00a9dad68d4f272e8360e4024e9a684 (patch)
tree776eb866b35427dd4683a0eedc2b420ec8c6e8d4 /Makefile
parent8cb12a01870067c2821ac5393556285466d820e8 (diff)
Fixes install copy not working by default.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index be7a161..1c8919f 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ BIN_DIR ?= ${CURDIR}/bin/
LIB_DIR ?= ${CURDIR}/lib/
TARGET ?= hastabel.jar
-INSTALL_DIR ?= .
+INSTALL_DIR ?= $(LIB_DIR)
#### Where to get the missing Jar files.
JAR_SOURCE ?= "https://noot-noot.org/tabellion/jar/"
@@ -70,7 +70,8 @@ LangLexer%java LangParser%java: $(ANTLR_SOURCES)
$(CLASSES): $(BIN_DIR)/%.class: $(SRC_DIR)/%.java $(BIN_DIR)
$(JAVAC) -cp $(CLASSPATH) -d $(BIN_DIR) $<
-%.jar: $(LIB_DIR)
+%.jar:
+ $(MAKE) $(LIB_DIR)
echo "Attempting to download missing jar '$@'..."
cd $(LIB_DIR); $(DOWNLOADER) "$(JAR_SOURCE)/$(notdir $@)"