Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Nov 2015 15:51:01 -0800
From:      Tim Kientzle <tim@kientzle.com>
To:        Yuri <yuri@rawbw.com>
Cc:        Freebsd hackers list <freebsd-hackers@freebsd.org>
Subject:   Re: Here documents: do they work in FreeBSD make?
Message-ID:  <C00F8961-ECBA-4298-9EA6-7A160334091D@kientzle.com>
In-Reply-To: <5650FB25.2060408@rawbw.com>
References:  <5650FB25.2060408@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> On Nov 21, 2015, at 3:15 PM, Yuri <yuri@rawbw.com> wrote:
> 
> This syntax doesn't work for me:
>        @cat <<EOF >${MY_DIR}/my-file \
>          #!/bin/sh \
>          \
>          echo 'Hello World!'  \
>          EOF \
> 
> ${MY_DIR}/my-file is created empty.

If you really need to build files programmatically as
part of your makefile, create separate shell scripts
and invoke those from make instead:

In makefile:
    ${TOPDIR}/build-file ${MY_DIR}/my-file





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C00F8961-ECBA-4298-9EA6-7A160334091D>