Re: [bug #50372] gmk_floc missing offset member

2017-03-13 Thread Brian Vandenberg
Originally there was only one struct that didn't have an offset member. I submitted a patch that added offset and made various code changes to ensure its use so warnings/error messages could correctly calculate the line number. Although I didn't like that "offset" was left out of the public-facin

Re: Defining new targets with eval during secondary expansion?

2017-03-13 Thread Brian Vandenberg
> > ASDF = $(foreach x, ${1}, $(eval $(call ${0}_, ${1}, $(dirname ${1} > ${1} > define ASDF_ = > ${1} :| ${2} > ${2} : ; mkdir -p ${@} > endef > > $(call build/foo/bar/baz/mytarget) : other dependencies for mytarget > That last line should've read: $(call ASDF, build/foo/bar/baz/mytarget)

Re: Defining new targets with eval during secondary expansion?

2017-03-13 Thread Brian Vandenberg
> > This is a bit nicer but there's still some duplication. What I'd like to do > is replace the argument on the right hand side with $(dir $@). With > secondary > expansion enabled I could write something like this: > > mktargetdir = $(eval $(call mkdir_template,$(dir $@))) $(dir $@) > > .SECO