allow any header file extension

This commit is contained in:
2022-03-08 15:03:11 +01:00
parent 433e452d0e
commit eb5f0fe083
+2 -3
View File
@@ -893,9 +893,8 @@ vpath menu%.dbd ${DBD_PATH}
# Find header files to install.
# Order is important! First OS dependent, then os default, then others
vpath %.h $(foreach path, os/${OS_CLASS} ${POSIX_{POSIX}} os/default, $(sort $(filter %/${path}/,$(dir ${HDRS})))) $(sort $(dir ${HDRS} $(filter-out /%,${SRCS})))
vpath %.hpp $(foreach path, os/${OS_CLASS} ${POSIX_{POSIX}} os/default, $(sort $(filter %/${path}/,$(dir ${HDRS})))) $(sort $(dir ${HDRS} $(filter-out /%,${SRCS})))
vpath %.H $(foreach path, os/${OS_CLASS} ${POSIX_{POSIX}} os/default, $(sort $(filter %/${path}/,$(dir ${HDRS})))) $(sort $(dir ${HDRS} $(filter-out /%,${SRCS})))
# Allow any header extention the user comes up with (.h, .H, .hpp, .hxx, ...)
$(foreach ext, $(sort $(suffix ${HDRS})), $(eval vpath %.${ext} $(foreach path, os/${OS_CLASS} ${POSIX_{POSIX}} os/default, $(sort $(filter %/${path}/,$(dir ${HDRS})))) $(sort $(dir ${HDRS} $(filter-out /%,${SRCS})))))
PRODUCTS = ${MODULELIB} ${MODULEDBD} ${DEPFILE}
MODULEINFOS: