freecwmp
[Top] [All Lists]

Re: [patch] adding $prefix for Makefile can handler installing destinati

To: Jorge Pereira <jpereiran@gmail.com>
Subject: Re: [patch] adding $prefix for Makefile can handler installing destination.
From: Luka Perkov <freecwmp@lukaperkov.net>
Date: Fri, 25 Oct 2013 00:48:15 +0200
Cc: freecwmp@linux-mips.org, Steven Barth <cyrus@openwrt.org>
In-reply-to: <CABvP5W21cDEkNwUcXecChzBH1rpAHjjtx7kvaMNArxKVq2L1SQ@mail.gmail.com>
Original-recipient: rfc822;freecwmp@linux-mips.org
References: <CABvP5W21cDEkNwUcXecChzBH1rpAHjjtx7kvaMNArxKVq2L1SQ@mail.gmail.com>
Sender: freecwmp-bounce@linux-mips.org
User-agent: Mutt/1.5.22 (2013-10-16)
Hi Jorge,

On Wed, Oct 23, 2013 at 04:49:35PM -0200, Jorge Pereira wrote:
> From 65aedc156bceb390806258940c294ecfc99bd574 Mon Sep 17 00:00:00 2001
> From: Jorge Pereira <jpereiran@gmail.com>
> Date: Tue, 22 Oct 2013 18:37:20 -0200
> Subject: [PATCH 1/1] adding $prefix for Makefile can handler installing
>  destination.

Please send the patch inline next time (you can use git send-email) and
note if the patch is for another (related) project. Steven is away and I
don't have commit access to zstream anymore so you will have to wait
until he is back...

Thanks!

Luka

> Signed-off-by: Jorge Pereira <jpereiran@gmail.com>
> ---
>  Makefile |    8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index a694e04..1e0d957 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -17,10 +17,12 @@ else
>    DYNFLAGS += -lubox
>  endif
>  
> +prefix:=/usr
> +bindir:=$(prefix)/bin
> +libdir:=$(prefix)/lib
> +includedir:=$(prefix)/include
>  
> -bindir:=/usr/bin
> -libdir:=/usr/lib
> -includedir:=/usr/include
> +CFLAGS+= -I$(includedir)
>  
>  all: $(LIBRARY) $(BINARY)
>  
> -- 
> 1.7.10.4
> 


<Prev in Thread] Current Thread [Next in Thread>