[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a syntax for multitarget rules
From: |
AB |
Subject: |
Re: a syntax for multitarget rules |
Date: |
Thu, 13 Nov 2014 16:27:16 -0500 |
As we are on topic of multi-target rules, I am curious if the following is
a reasonable work-around.
Given that pattern rules can have multi targets, can we do something like:
%%%%%%%%%%
# Say we have a recipe that creates the files a.x and b.y together.
# I create a pattern rule based on a.x and b.y as below
a.x% b.y%:
<Recipe to make both a.x and b.x together>
.PHONY : build
# We now build a.x and b.y, with the assumption
# that the stem for the pattern rule above in this case would be an empty
string
build : a.x b.y
%%%%%%%%%%
I recognize that this more of a hack, but apart from that are their any
other issues with this approach.
Thanks
AB
On Thu, Nov 13, 2014 at 3:29 PM, Paul Smith <address@hidden> wrote:
> On Thu, 2014-11-13 at 20:16 +0000, Tim Murphy wrote:
> > Perhaps another 10 years can go by while everyone debates the perfect
> > combination of ascii characters to implement a very useful feature.
> > Then we can all know deep in our hearts that all the egregious hacks
> > we had to engineer to work around the lack of this feature were at
> > last worth it. All the hours of headaches and weird constructs with
> > various fatal flaws will have been justified because XXYYZ looks nice
> > finally.
> >
> > I apologise for that but i had to get it off my chest.
>
> As far as I'm concerned it's not the lack of exact syntax that's the
> problem. The syntax issues are relatively trivial to solve/change.
> It's someone actually doing the rest of the implementation that's the
> problem.
>
>
>
> _______________________________________________
> Help-make mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-make
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: a syntax for multitarget rules,
AB <=