Correct syntax for CFLAGS to change a -DCONFIG_FILE_PATH=...
Renato Botelho
garga at FreeBSD.org
Wed Dec 30 12:14:49 UTC 2020
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