From 1beb173f7e876fff48cc09adcc9be2481867abb0 Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Wed, 5 Jun 2024 16:34:39 +0000 Subject: real.make: Allow generated files not in conf-raw --- Makefile.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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})) \ ) \ )) -- cgit v1.2.3-70-g09d2