Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2020 09:14:44 -0300
From:      Renato Botelho <garga@FreeBSD.org>
To:        Nuno Teixeira <ed.arrakis@gmail.com>, freebsd-ports@freebsd.org
Subject:   Re: Correct syntax for CFLAGS to change a -DCONFIG_FILE_PATH=...
Message-ID:  <e58130d2-0f14-11c2-20cb-4eb29693e2c1@FreeBSD.org>
In-Reply-To: <CAFDf7ULLZB-NXBmxcb7G=gj_%2B9OszAUn4yyEdVEj67zKYf%2BFsA@mail.gmail.com>
References:  <CAFDf7ULLZB-NXBmxcb7G=gj_%2B9OszAUn4yyEdVEj67zKYf%2BFsA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e58130d2-0f14-11c2-20cb-4eb29693e2c1>