On Tue, 2015-08-25 at 10:28 -0700, Ploppz wrote: > Hi. I have this line: > echo "$(shell ~/scripts/make/getshadernames src)" | sed > 's/\(.*\)/\textern > char const * const \1;/g' >> src/shaders.h > > getshadernames prints out one name on each line. My problem is that > what is send to sed via the pipe, is only one long line - with > newlines removed. How can I fix that?
Why are you using the $(shell ...) function in a recipe? The recipe is already running in a shell! Why not just: $$HOME/scripts/make/getshadernames src | sed ... >> src/shaders.h ? _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make