
Adding set operations to GNU Make
Address
John Graham-Cumming jgc@jgc.org
by John Graham-Cumming
This month's article covers a recent change to the GNU Make Standard Library (GMSL). The GMSL now has a collection of functions for handling sets.
A set is simply a collection of items without duplication (for more on the underlying theory visit this Wikipedia page).
In the GMSL implementation is a set is a collection of strings without duplication. The strings may not contain spaces. A GMSL set can be used to store a collection of file names, for example, and the GMSL functions ensure that the set has no duplicates.
In this article I describe the functions available and give some simple examples; in next month's article I'll use the set functions to extend the GNU Make Debugger introduced here to include interactive breakpoints on rule execution.
Read more from Mr. Make...
Reviews (0)
Be the first to review this listing!
