On Wed, Dec 30, 2009 at 5:50 PM, Sam Ravnborg <[email protected]> wrote: > On Thu, Dec 31, 2009 at 02:17:53PM +1800, Peng Yu wrote: >> Suppose that I have the following two variables A and B. I want to >> compute the union and the intersection of them, which are 'a b c d' >> and 'b c' respectively. >> >> A = a b c >> B = b c d > > union = $(sort $(A) $(B)) > intersection = $(filter $(A), $(B)) > > I did not test this but I think this works.
'union' works, but 'intersection' should be intersection= $(filter $(A), $(B)) _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
