Correct syntax for CFLAGS to change a -DCONFIG_FILE_PATH=...

Nuno Teixeira ed.arrakis at gmail.com
Wed Dec 30 13:39:25 UTC 2020


 Thanks!

Nuno

Renato Botelho <garga at freebsd.org> escreveu no dia quarta, 30/12/2020 à(s)
12:14:

> On 30/12/20 05:31, Nuno Teixeira wrote:
> > Hello,
> >
> > Recently upstream changed is example.c to have:
> >
> > #ifndef CONFIG_FILE_PATH
> > #define CONFIG_FILE_PATH "./example.conf"
> > #endif
> >
> > I found a way to change it in example port Makefile:
> >
> > CFLAGS+= -https://github.com/johnmehr/gitup/pull/17=\\\
> "${LOCALBASE}/etc/example.conf\\\"
> >
> > It works fine.
> >
> > Am I doing the correct way and correct syntax? Those "\\\" ... "\\\" make
> > me some confusion.
>
> I've opened a PR [1] to improve gitup's Makefile and after it's accepted
> you will be able to use:
>
> MAKE_ENV+= CONFIG_FILE_PATH=${LOCALBASE}/etc/gitup.conf
>
> [1] https://github.com/johnmehr/gitup/pull/17
>
> --
> Renato Botelho
>


More information about the freebsd-ports mailing list