to filter out dirs from HEADERS wildcards, don't filter for -f (is file) but for not -d (is not dir) to be able to catch missing headers (which would otherwise be silently ignored)

This commit is contained in:
2020-06-26 11:38:07 +02:00
parent 9fab300866
commit 41840b13d2
+1 -1
View File
@@ -121,7 +121,7 @@ define uniq
endef
# Function that removes directories from list
define filter_out_dir
$(shell perl -e 'foreach my $$x (qw($1)) {if(-f "$$x") {print "$$x "}}')
$(shell perl -e 'foreach my $$x (qw($1)) {unless(-d "$$x") {print "$$x "}}')
endef
# Function that retains the certian portion of the header file path
# and then used as the subdirectory inside INSTALL_INCLUDE