ifneq ($(CFGHOST),@cfghost@)
include $(PROJECT_DIR)/config/$(CFGHOST)/config.mk
endif
CFGHOST_SYNONYM ?= $(CFGHOST)
ifneq ($(CFGHOST),$(CFGHOST_SYNONYM))
include $(PROJECT_DIR)/config/$(CFGHOST_SYNONYM)/config.mk
config.tag:
mkdir -p build
cp -a $(PROJECT_DIR)/config/$(CFGHOST_SYNONYM)/config.c build/
cp -a $(PROJECT_DIR)/config/$(CFGHOST_SYNONYM)/pyconfig.h build/
touch config.tag
clean-config:
rm -f config.tag
rm -f build/config.c
rm -f build/pyconfig.h
clean: clean-config
build/config.c: config.tag
build/pyconfig.h: config.tag