ifeq ($(origin _L4DIR_MK_MAKECONF),undefined)
_L4DIR_MK_MAKECONF=y
-MAKEFLAGS += -R
+MAKEFLAGS += --no-print-directory -Rr
# the default target is all
all::
$(if $(wildcard $(1)),,$(VERBOSE)$(INSTALL) -d $(1))
endef
+# Move $(2) to $(1) if content of both files differ
+define move_if_changed
+ $(VERBOSE)if test ! -r "$(1)" || ! cmp -s $(1) $(2); then \
+ mv $(2) $(1); \
+ else \
+ rm $(2); \
+ fi
+endef
+
ifneq ($(PT),)
PLATFORM_TYPE := $(PT)
endif