Skip to content

Commit 8581f00

Browse files
committed
mk/cfg: add .mk suffix on files to avoid "supprises" when backup files (file~) are in the directory
1 parent 3e94144 commit 8581f00

17 files changed

+5
-2
lines changed

configure

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,10 @@ CFG_PREFIX=${CFG_PREFIX%/}
883883
CFG_MANDIR=${CFG_MANDIR%/}
884884
CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
885885
CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
886-
CFG_SUPPORTED_TARGET="$(ls ${CFG_SRC_DIR}mk/cfg)"
886+
CFG_SUPPORTED_TARGET=""
887+
for target_file in ${CFG_SRC_DIR}mk/cfg/*.mk; do
888+
CFG_SUPPORTED_TARGET="${CFG_SUPPORTED_TARGET} $(basename "$target_file" .mk)"
889+
done
887890

888891
# copy host-triples to target-triples so that hosts are a subset of targets
889892
V_TEMP=""
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

mk/platform.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ $(foreach cvar,CC CXX CPP CFLAGS CXXFLAGS CPPFLAGS, \
113113

114114
CFG_RLIB_GLOB=lib$(1)-*.rlib
115115

116-
include $(wildcard $(CFG_SRC_DIR)mk/cfg/*)
116+
include $(wildcard $(CFG_SRC_DIR)mk/cfg/*.mk)
117117

118118
# The -Qunused-arguments sidesteps spurious warnings from clang
119119
define FILTER_FLAGS

0 commit comments

Comments
 (0)