2 # prepends the BUILD_DIR var to each item in the list
3 TOBUILDDIR
= $(addprefix $(BUILD_DIR
)/,$(1))
5 # sees if the target is in the list
6 FINDINLIST
= $(if
$(findstring $(1),$(2)),1,0)
8 # used in template files to build a directory in the build rules
9 MKDIR
= if
[ ! -d
$(dir $@
) ]; then mkdir
-p
$(dir $@
); fi