From 21ad38186bb7f10abe8d95bc3f2685d22be310a6 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Mon, 15 Apr 2013 03:21:41 +0400 Subject: Should use second expansion --- rules/common.mk | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3