[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing the prefix for this libpg_query package
From: |
Felix Lechner |
Subject: |
Re: Changing the prefix for this libpg_query package |
Date: |
Sun, 25 Feb 2024 09:51:47 -0800 |
Hi Marc,
On Tue, Feb 20 2024, Marc Coquand wrote:
> I need to change the prefix to be the guix out directory
To override the variable assigned in the Makefile [1] you are right to
offer it as an argument to 'make'. [2] I'm not sure why that's not
working. I would just replace it in situ:
#:phases (modify-phases %standard-phases
(add-after 'unpack 'fix-prefix
(lambda _
(substitute* "Makefile"
(("/usr/local") $output)))))
Kind regards
Felix
[1]
https://github.com/pganalyze/libpg_query/blob/1ec38940e5c6f09a4c1d17a46d839a881c4f2db7/Makefile#L311
[2] https://www.gnu.org/software/make/manual/make.html#Overriding