help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shell command in a make file


From: patrick
Subject: shell command in a make file
Date: Sat, 31 May 2014 11:18:06 -0700 (PDT)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]