sed -n -e 's/^\([^.]*\)\.\(.*\)$$$$/#define \1 \2/p' \
>> "$(1).tmp"
@echo "#endif /*$(3)*/" >> "$(1).tmp"
- @if cmp --quiet "$(1).tmp" "$(1)" ; then rm "$(1).tmp" ; \
+ @if cmp --quiet "$(1).tmp" "$(1)" ; then rm "$(1).tmp"; touch "$(1)" ; \
else mv "$(1).tmp" "$(1)" ; \
echo Updated configuration "$(1)" ; fi
ifdef LOCAL_CONFIG_H
-CFLAGS += -I.
+# This must be declared after the default cflags are assigned!
+# Override is used to override command line assignemnt.
+override CFLAGS += -I.
$(eval $(call BUILD_CONFIG_H_template,$(LOCAL_CONFIG_H),default_CONFIG,_LOCAL_CONFIG_H) )
endif