Mail Archives: djgpp-workers/1996/08/27/07:05:15
On Tue, 27 Aug 1996, Robert Hoehne wrote:
> I would like the following feature of make in the future, if it is possible:
>
> OBJECT_FILES=`cat ofile`
Does Make on Unix support such a facility?
Anyway, you can get this *today* by using the $(shell) built-in function
of GNU Make, like so:
OBJECT_FILES=$(shell "cat ofile")
Is this good enough for what you want?
Btw, this facility should be even better when I make $(shell) use `popen',
because then you will be able to say something like this:
OBJECT_FILES=$(shell "cat ofile | sed -n -e '/foo/p'")
Currently, $(shell) doesn't support pipes.
- Raw text -