summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-09-06 21:01:36 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-09-06 21:01:36 +0200
commitd34375f7338a1397e8480e875baf5862138ed528 (patch)
treedcb5229a6b6f506b843b8fbdc1b19108a60227a7 /Makefile
parent9e684761e12ad31d8c5996e7f960fd99b1f8f23e (diff)
Fixes miss in Makefile, adds a sanity check.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 74874a7..3737414 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,9 @@ MODULES_WWW = $(addprefix $(WWW_DIR)/,$(MODULES))
################################################################################
## SANITY CHECKS ###############################################################
################################################################################
+ifeq ($(strip $(wildcard $(DATA_DIR))),)
+$(error "Could not find the game's data folder (currently set to $(DATA_DIR)). Download it and set the DATA_DIR variable to match its location.")
+endif
################################################################################
## INCLUDES ####################################################################
@@ -29,8 +32,9 @@ include ${CURDIR}/mk/preprocessor.mk
################################################################################
all: $(PREPROCESSOR_RESULT) build $(WWW_DIR) $(MODULES_WWW)
-upload_demo:
- scp -r $(WWW_DIR)/* dreamhost:~/tacticians.online/
+upload_to:
+ $(MAKE) CONFIG_FILE=conf/tacticians.conf
+ scp -r $(WWW_DIR)/* procyon_:/static_content_node/
build:
for module in $(MODULES_SRC) ; do \