aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2013-04-15 03:21:41 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2013-04-15 03:21:41 +0400
commit21ad38186bb7f10abe8d95bc3f2685d22be310a6 (patch)
treea550d297b69738eb91229c63b97384b6b60a49be
parent6a6a93251550a605e086d68b5110e89ecb4b9de5 (diff)
downloadcibs-21ad38186bb7f10abe8d95bc3f2685d22be310a6.tar.gz
Should use second expansion
-rw-r--r--rules/common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/common.mk b/rules/common.mk
index fa30a57..d130fc0 100644
--- a/rules/common.mk
+++ b/rules/common.mk
@@ -24,6 +24,8 @@
# include guard:
ifeq (,$(__common_mk))
+.SECONDEXPANSION:
+
skip := \#
build32 := $(skip)
@@ -61,6 +63,8 @@ install-$1-stamp : build-$1-stamp
variants += $1
%-$1-stamp: variant = $1
+%-$1-stamp: protodir = $$(protodir.$1)
+%-$1-stamp: builddir = $$(builddir.$1)
endef