Hello!

I need to create one very long string from makefile. I tied to split it using 
backslash,
as I did it in shell script. But, when I executed makefile, the backslash was 
translated
into space. I think it is not good. In the documentation there is description:

"If you would like to split a single shell command into multiple lines of text, you 
must
use a backslash at the end of all but the last subline. Such a sequence of lines is
combined into a single line, by deleting the backslash-newline sequences, before 
passing
it to the shell."


I used

GNU Make version 3.78.1, by Richard Stallman and Roland McGrath.
Built for i586-pc-linux-gnu
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
        Free Software Foundation, Inc.

I attached makefile and make_output file where we can see blank between first
and second parts of the word. I attached shell script echo_sample.sh, which executing
shows us one big word without blank space inside.


-- 
                                        Yaroslav M. Sokolov
#!/bin/sh

echo First_part_of_word_\
Second_part_of_word
all:
        echo First_part_of_word_\
Second_part_of_word

echo First_part_of_word_\
Second_part_of_word
First_part_of_word_ Second_part_of_word

Reply via email to