replicant-vendor_replicant/build/core/definitions.mk
Steve Kondik ffe07b85eb cm: CM-specific build macros
* vendor/*/build/core/definitions.mk is automatically sourced by the
   build system to load custom macros. Start using this for some
   of our own.
 * Adds a "uniq" macro to remove duplicates from a list without changing
   it's order.

Change-Id: Id5f1eb4b9f81bb31ca0b3d5e74c298b3d105da10
2015-04-07 02:27:35 +00:00

7 lines
114 B
Makefile

#
# CM-specific macros
#
define uniq
$(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
endef