The variable LIST holds a list of files based on which we will be generating a few other files. For efficiency, we would like this list to be explicit, instead of it being created using wildcard/scanning the disk. I would like to have a mechansim that enforces this paradigm, by erroring out on usage of wildcard to create LIST.
Thanks On Mon, Apr 30, 2012 at 3:43 PM, Lane Schwartz <[email protected]> wrote: > On Mon, Apr 30, 2012 at 3:41 PM, AB <[email protected]> wrote: > >> Hi: >> I wanted to see if we have a way to hide/error out usage of a make >> function like "wildcard' in a specific Makefile. For example, I would >> like to have the following behavior from test.mk: >> >> %< %< %< %< %< %< %< %< %< %< %< %< %< %< %< %< %< %< >> >> #Error out if wildcard is used in "test.mk" >> LIST := $(wildcard *.txt) >> >> #test.mk includes foo.mk, which can use wildcard >> include foo.mk >> >> %< %< %< %< %< %< %< %< %< %< %< %< %< %< %< %< %< %< >> >> Any comments on how this can be achieved. >> > > I doubt this is possible. What is the motivation behind this? > > Lane > > _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
