bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$(file) can't read files


From: Tim Murphy
Subject: $(file) can't read files
Date: Wed, 27 May 2015 07:50:42 +0100



$(file) offers the ability to write files which saves one from tricks involving $(shell).  Calling $(shell) is very slow indeed in some makefiles.

$(shell cat filename) is also often used to read files into variables.

There isn't much reason why $(file <) shouldn't read a file though is there?   It would have the additional benefit of being platform independent.

I don't currently have permission to offer code but the implementation of $(file) should easily accomodate this:

output:=$(file <template.txt)

Regards

Tim

--
You could help some brave and decent people to have access to uncensored news by making a donation at:

http://www.thezimbabwean.co.uk/friends/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]