[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ifeq evaluation in makefile
From: |
Paul D. Smith |
Subject: |
Re: ifeq evaluation in makefile |
Date: |
Fri, 5 Nov 2004 11:24:13 -0500 |
%% Sébastien Douheret <address@hidden> writes:
sd> SEARCH_DATE := `cat ${H_FILE_VERSION} | grep ${PRJ_DATE}`
Make doesn't do ``. This just sets SEARCH_DATE to the actual string
"`cat ${H_FILE_VERSION} | grep ${PRJ_DATE}`", which obviously is never
empty.
If you want to actually run a shell command you need to use the GNU make
$(shell ...) function, not backticks.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist