[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
use eval to emit only part of a rule?
From: |
Britton Kerin |
Subject: |
use eval to emit only part of a rule? |
Date: |
Mon, 17 May 2021 15:20:01 -0800 |
I'd like to use eval to emit some boilerplate vars and everything
short of the prereq list for a
static pattern rule. Is it possible? This is as close as I came:
# Production Stamp Target Header Template
PSTHT = \
$1_STAMPS = $$(PBT:.pcb=.$1.stamp)$(nl) \
PRODUCTION_STAMPS += $$($1_STAMPS)$(nl) \
vpath %.$1.stamp $$(STD)$(nl) \
$$($1_STAMPS): %.$1.stamp
# Stamps meaning parts for a given board have been ordered
$(eval $(call PSTHT, parts_ordered)): \
%.$(GIT_VID).multivendor_bom.csv \
[snip]
Oddly if I put the : inside the template I get missing separator
(syntax error). The above passes
syntax but then I get No rule to make target. Maybe it just isn't
possible to split things up like
this?
Britton
- use eval to emit only part of a rule?,
Britton Kerin <=