mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-18 18:56:31 +00:00
105e4b59b7
Instead, prepare the files as a part of bootstrap and install them. This avoids rebuilding these files in each working directory; they don't change anyway as they are generated from the same installed source. Signed-off-by: Alexey Neyman <stilor@att.net>
28 lines
905 B
Makefile
28 lines
905 B
Makefile
#-----------------------------------------------------------
|
|
# List all config files
|
|
|
|
# The top-level config file to be used be configurators
|
|
# We need it to savedefconfig in scripts/saveSample.sh
|
|
export KCONFIG_TOP = config/config.in
|
|
|
|
# Build the list of all source config files
|
|
STATIC_CONFIG_FILES = $(patsubst $(CT_LIB_DIR)/%,%,$(shell find $(CT_LIB_DIR)/config -type f \( -name '*.in' -o -name '*.in.2' \) 2>/dev/null))
|
|
# ... and how to access them:
|
|
$(STATIC_CONFIG_FILES): config
|
|
|
|
# Helper entry for the configurators
|
|
PHONY += config_files
|
|
config_files: $(STATIC_CONFIG_FILES) $(GEN_CONFIG_FILES)
|
|
|
|
# Where to access to the source config files from
|
|
config:
|
|
@$(CT_ECHO) " LN config"
|
|
$(SILENT)ln -s $(CT_LIB_DIR)/config config
|
|
|
|
#-----------------------------------------------------------
|
|
# Cleaning up the mess...
|
|
|
|
clean::
|
|
@$(CT_ECHO) " CLEAN config"
|
|
$(SILENT)rm -f config 2>/dev/null || true
|