summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile8
-rw-r--r--src/asset/Makefile5
2 files changed, 10 insertions, 3 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 \
diff --git a/src/asset/Makefile b/src/asset/Makefile
index ab464b2..b6bebcd 100644
--- a/src/asset/Makefile
+++ b/src/asset/Makefile
@@ -34,6 +34,9 @@ reset:
################################################################################
## INTERNAL RULES ##############################################################
################################################################################
-$(TILE_WITNESS): $(TILE_CLASSES_FILES) $(TILE_FRONTIER_FILES)
+$(TILE_WITNESS): $(WWW_TILES_DIR) $(TILE_CLASSES_FILES) $(TILE_FRONTIER_FILES)
$(GEN_ALL_TILES_EXEC) $(WWW_TILES_DIR) $(TILE_CLASSES_DIR) $(TILE_FRONTIER_DIR)
touch $@
+
+$(WWW_TILES_DIR):
+ mkdir -p $@