delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/08/27/07:05:15

Date: Tue, 27 Aug 1996 13:58:34 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Robert Hoehne <robert DOT hoehne AT mathematik DOT tu-chemnitz DOT de>
Cc: djgpp-workers AT delorie DOT com
Subject: Re: Port of Make 3.74 to DJGPP
In-Reply-To: <Pine.HPP.3.91.960827113256.14530H-100000@newton.mathematik.tu-chemnitz.de>
Message-Id: <Pine.SUN.3.91.960827132440.11856D-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019