[Olsr-dev] change default install location to /usr/local

Henning Rogge (spam-protected)
Thu May 31 20:20:21 CEST 2012


Must be tested first if this breaks OpenWRT and Debian build mechanisms.

Henning

On Thu, May 31, 2012 at 8:02 PM, Hans-Christoph Steiner
<(spam-protected)> wrote:
>
> I would like to include this patch to change the default Linux install location to /usr/local, which is the generally accepted UNIX standard for user-installed programs.  Currently, it installs into /usr, which is set aside for system-installed programs (apt-get, yum, etc.  This patch also includes the standard Makefile variables $DESTDIR, $prefix, and $libdir, for standardized overriding of those locations (i.e. make prefix=/usr).
>
> Any objections?
>
> diff --git a/make/Makefile.linux b/make/Makefile.linux
> index e73be7c..02fb99f 100644
> --- a/make/Makefile.linux
> +++ b/make/Makefile.linux
> @@ -3,8 +3,12 @@
>  #
>
>  ARCH := $(shell uname -m)
> +
>  DESTDIR ?=
> -LIBDIR =       $(DESTDIR)/usr/lib
> +prefix ?= /usr/local
> +libdir ?= $(prefix)/lib
> +
> +LIBDIR =       $(DESTDIR)$(libdir)
>
>  SRCS +=        $(wildcard src/linux/*.c src/unix/*.c)
>  HDRS +=                $(wildcard src/linux/*.h src/unix/*.h)
> --
> Olsr-dev mailing list
> (spam-protected)
> https://lists.olsr.org/mailman/listinfo/olsr-dev



-- 
Steven Hawkings about cosmic inflation: "An increase of billions of
billions of percent in a tiny fraction of a second. Of course, that
was before the present government."




More information about the Olsr-dev mailing list