Project

General

Profile

« Previous | Next » 

Revision 8271

lib/common.Makefile: Added $(require_var)

View differences:

lib/common.Makefile
14 14
and = $(if $(1),$(2))
15 15
or = $(1)$(2)
16 16
not = $(if $(1),,1)
17
require_var = $(if $($(1)),,$(error requires var $$$(1)))
17 18
pathParts = $(shell path="$(1)"; echo "$${path%%/*}" "$${path\#*/}")
18 19
topDir = $(word 1,$(pathParts))
19 20
subPath = $(word 2,$(pathParts))

Also available in: Unified diff