LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Makefile:How to use cat command (https://www.linuxquestions.org/questions/linux-newbie-8/makefile-how-to-use-cat-command-614431/)

Ashok_mittal 01-18-2008 12:19 AM

Makefile:How to use cat command
 
I am making a Makefile where i am doing this

empty:=
comma:=,
space:= $(empty) $(empty)
text:=a b c
all:
text1=$(subst $(space),$(comma),$(text))

Now i want to write the value of text1 in a file result in current directory so i write this
$(cat >&result<<text1)
but this is not working. What code should i write to get the result.

bigrigdriver 01-18-2008 07:38 AM

Something like
Code:

$(cat test1 > result)
to write the file, or
Code:

$(cat test1 >> result)
to append to the file.


All times are GMT -5. The time now is 02:01 AM.