summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeyorp <TheFreeYorp+git@gmail.com>2024-06-05 16:34:39 +0000
committerFreeyorp <TheFreeYorp+git@gmail.com>2024-06-05 19:09:16 +0000
commit1beb173f7e876fff48cc09adcc9be2481867abb0 (patch)
tree6d67d096620d193ea85bae8327f6c8f0fea08b58
parent487db287f8bbc97c794e63a3aea54ba4f25b633a (diff)
downloadtmwa-1beb173f7e876fff48cc09adcc9be2481867abb0.tar.gz
tmwa-1beb173f7e876fff48cc09adcc9be2481867abb0.tar.bz2
tmwa-1beb173f7e876fff48cc09adcc9be2481867abb0.tar.xz
tmwa-1beb173f7e876fff48cc09adcc9be2481867abb0.zip
real.make: Allow generated files not in conf-raw
-rw-r--r--Makefile.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index f9f1fed..79fe4ce 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -190,6 +190,7 @@ stamp/generated.stamp:
false
# path lists
+GENERATED_FILES := src/conf/version.hpp
REAL_SOURCES := $(shell cd ${SRC_DIR}; find src/ -name '*.cpp')
REAL_HEADERS := $(shell cd ${SRC_DIR}; find include/ src/ -name '*.hpp' -o -name '*.tcc')
PIES := $(shell cd ${SRC_DIR}; find src/ -name '*.py')
@@ -351,7 +352,8 @@ thisdir := $(abspath .)
# to:
# src/strings/zstring.tcc
# - only files which either exist (the purpose of the wildcard function),
-# or are in the conf-raw directory (the purpose of the filter function).
+# are in the conf-raw directory (the first filter function), or
+# are listed in the GENERATED_FILES variable (the second filter function).
# This means that if there are any build-time generated files added, this
# needs to be modified to not filter them out.
#
@@ -372,6 +374,7 @@ $(foreach root,${PATTERN_ROOTS},$(eval \
${root} := $(sort \
$(wildcard $(value ${root})) \
$(filter conf-raw/%.h,$(value ${root})) \
+ $(filter ${GENERATED_FILES},$(value ${root})) \
) \
))