summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-07-12 21:09:37 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2018-07-12 21:09:37 +0200
commiteb7c4865b5311ca559b12fe649ea3f865d1f66b5 (patch)
tree8165f1c587e7e8843a4712febf8136a05d105f60 /mk/preprocessor.mk
parent559f46102c656ace81a262f0edff28b617a7ec88 (diff)
The map editor now displays it correctly.
Diffstat (limited to 'mk/preprocessor.mk')
-rw-r--r--mk/preprocessor.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/preprocessor.mk b/mk/preprocessor.mk
index 285c9fa..9046fb0 100644
--- a/mk/preprocessor.mk
+++ b/mk/preprocessor.mk
@@ -9,6 +9,9 @@ CONFIG_FILE ?= ${CURDIR}/conf/constants.conf
PREPROCESSOR_FILES = $(shell find ${CURDIR} -name "*.m4")
PREPROCESSED_FILES = $(patsubst %.m4,%,$(PREPROCESSOR_FILES))
+MAKEFILE_TO_M4 = \
+ --define=__MAKEFILE_DATA_DIR=$(DATA_DIR)
+
################################################################################
## SANITY CHECKS ###############################################################
################################################################################
@@ -25,7 +28,7 @@ PREPROCESSOR_RESULT = $(PREPROCESSED_FILES)
## INTERNAL RULES ##############################################################
################################################################################
$(PREPROCESSED_FILES): %: %.m4 .PHONY
- m4 -P $(CONFIG_FILE) $< > $@
+ m4 -P $(MAKEFILE_TO_M4) $(CONFIG_FILE) $< > $@
.PHONY: