[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Original stdout inside the $(shell ...) function
From: |
Basin Ilya |
Subject: |
Original stdout inside the $(shell ...) function |
Date: |
Tue, 10 Apr 2018 13:07:52 +0300 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
Hi. I want to print a diagnostic message whenever my shell expression is
evaluated. Currently, I have the following line in my makefile:
SQLFILES := $(shell >&2 echo finding SQLFILES... && cd "$(srcdir)" && find
. -name "*.sql")
As you can see, the message "finding SQLFILES..." is printed to stderr, but I
want the original stdout instead. Does GNU Make make it available as some other
fd, say, "4"?