|
From: | Harvey Chapman |
Subject: | Re: [gnu.org #422525] Passing conditional expression to shell in a make file? |
Date: | Fri, 27 Mar 2009 11:02:50 -0400 |
User-agent: | Postbox 1.0b9 (Macintosh/2009030821) |
rajdeep lodh wrote:
define bmp_cefs@echo #------------------------------------------------------------------@echo Copying BMP CEFS image ..... @echo Done Copying BMP CEFS image@echo #------------------------------------------------------------------endef
define bmp_cefsecho "#------------------------------------------------------------------" ; \
echo "Copying BMP CEFS image ....." ; \ echo "Done Copying BMP CEFS image" ; \echo "#------------------------------------------------------------------"
endefThere were a few things. bmp_cefs is included as part of a single shell command and not as separate make commands so it needs to be formatted as such. Notice the quotation marks used for the echo's, especially around the # which was ending the line for make. Also, since it's all really one long shell command, each line needed a "; \" except for the last, of course. Lastly, the '@'s needed to go. See below.
Cheers, Harvey
[Prev in Thread] | Current Thread | [Next in Thread] |