On Mon, Dec 04, 2006 at 08:24:31AM -0600, Robert Citek wrote:
> How do I get the new version of 'make' to work like the old?  That is,
> how to I get 'make' to understand that "\" at the end of a line means
> the command continues on the next line?
> 
> In previous versions of make (3.8 under FC4), this would work:
> 
> $ cat Makefile
> foo :
>         echo 'Hello, \
>         world'
> 
> $ make foo
> Hello, world
> 
> $ make -v
> GNU Make 3.80

It seems the problem is that the backslash is inside the single quote.

  $ cat newline.mk
  foo :
          echo 'Hello, \
          world'

  bar :
          echo 'Hello,' \
          'world'
  $ make --version
  GNU Make 3.81
  Copyright (C) 2006  Free Software Foundation, Inc.
  This is free software; see the source for copying conditions.
  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
  PARTICULAR PURPOSE.

  This program built for i486-pc-linux-gnu
  $ make --silent --file=newline.mk foo
  Hello, \
  world
  $ make --silent --file=newline.mk bar
  Hello, world

> Seems like my options are:
> 1) pass some option to 'make' to make it act like the previous version
> (didn't see one.)
> 2) rewrite my Makefile that I've been using for years to handle
> different versions of 'make'

Why are you splitting quotes over multiple lines?

> 3) use something other than 'make'.  Suggestions?

I know of no make alternatives that use Makefiles.

-- 
David Dooling

 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to