I have a bigg big issue, I am tryng the next but I could not perform to write
some shell commands in a make file:
define example
$(shell \
particle=typedef \
source=$(1) \
)
endef
file_nam=PROJ1/SOURCES/demo_c1.c
file_content=$(shell cat ${file_nam})
rez5=$(call example,$(file_content))
f:
@echo '$(rez5)'
It does not work, because the code associated with shell is seen as commands
for f target. What I can do?
--
View this message in context:
http://gnu-make.2324884.n4.nabble.com/shell-command-in-a-make-file-tp15549.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.
_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make