image.in: add include-once check

This is following mkimage's approach;
better late than never.
This commit is contained in:
Michael Shigorin 2019-07-18 19:03:09 +03:00 committed by Anton Midyukov
parent 9e2e5c0c1f
commit f1cc7f0c31

View File

@ -1,6 +1,9 @@
ifneq (clean,$(MAKECMDGOALS)) ifneq (clean,$(MAKECMDGOALS))
ifneq (distclean,$(MAKECMDGOALS)) ifneq (distclean,$(MAKECMDGOALS))
ifndef INCLUDED_FUNCTIONS_MK
INCLUDED_FUNCTIONS_MK = 1
# globals # globals
PKGDIR ?= $(GLOBAL_BUILDDIR)/pkg PKGDIR ?= $(GLOBAL_BUILDDIR)/pkg
@ -49,3 +52,4 @@ branding = $(and $(1),^branding-$(BRANDING)-($(call list2re,$(1)))$$)
endif endif
endif endif
endif