diff mbox

[FFmpeg-devel,NV,HEADERS] allow overriding the PREFIX from the environment

Message ID 20190912131709.7064-1-robux4@ycbcr.xyz
State New
Headers show

Commit Message

Steve Lhomme Sept. 12, 2019, 1:17 p.m. UTC
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steve Lhomme Sept. 12, 2019, 1:20 p.m. UTC | #1
This is for this repo: 
https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git

On 2019-09-12 15:17, Steve Lhomme wrote:
> ---
>   Makefile | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index a51c2c9..c3a9209 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1,4 +1,4 @@
> -PREFIX = /usr/local
> +PREFIX ?= /usr/local
>   LIBDIR = lib
>   INSTALL = install
>   SED = sed
> -- 
> 2.17.1
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
>
Timo Rothenpieler Sept. 12, 2019, 2:26 p.m. UTC | #2
On 12/09/2019 15:17, Steve Lhomme wrote:
> ---
>   Makefile | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index a51c2c9..c3a9209 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1,4 +1,4 @@
> -PREFIX = /usr/local
> +PREFIX ?= /usr/local

Overriding the prefix worked just fine last time I tested it.

You do make install PREFIX=...

>   LIBDIR = lib
>   INSTALL = install
>   SED = sed
>
Steve Lhomme Sept. 13, 2019, 7:02 a.m. UTC | #3
Ah yes, it works (TIL).
Forget about this patch.

On 2019-09-12 16:26, Timo Rothenpieler wrote:
> On 12/09/2019 15:17, Steve Lhomme wrote:
>> ---
>>   Makefile | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/Makefile b/Makefile
>> index a51c2c9..c3a9209 100644
>> --- a/Makefile
>> +++ b/Makefile
>> @@ -1,4 +1,4 @@
>> -PREFIX = /usr/local
>> +PREFIX ?= /usr/local
> 
> Overriding the prefix worked just fine last time I tested it.
> 
> You do make install PREFIX=...
> 
>>   LIBDIR = lib
>>   INSTALL = install
>>   SED = sed
>>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
diff mbox

Patch

diff --git a/Makefile b/Makefile
index a51c2c9..c3a9209 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@ 
-PREFIX = /usr/local
+PREFIX ?= /usr/local
 LIBDIR = lib
 INSTALL = install
 SED = sed