- if ! cmp -s $(RTE_CONFIG_TEMPLATE) $(RTE_OUTPUT)/.config; then \
- cp $(RTE_CONFIG_TEMPLATE) $(RTE_OUTPUT)/.config ; \
+ if grep -q '#include' $(RTE_CONFIG_TEMPLATE) ; then \
+ $(CPP) -undef -C -P -x assembler-with-cpp -fdirectives-only \
+ -o $(RTE_OUTPUT)/.config_tmp $(RTE_CONFIG_TEMPLATE) ; \
+ else \
+ cp $(RTE_CONFIG_TEMPLATE) $(RTE_OUTPUT)/.config_tmp ; \