From: Otavio Salvador Date: Fri, 19 Nov 2010 15:54:53 +0000 (-0200) Subject: build: add support for "DESTDIR" variable X-Git-Tag: r0-52-13~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=166809673552eb2a3a546fd01151d25787c4280e;p=thirdparty%2Fnewt.git build: add support for "DESTDIR" variable The build system uses "instroot" to define the path for installation however "DESTDIR" is the most common used one (e.g Debian and OpenEmbedded use it). This patch makes "instroot" defaults to "DESTDIR" value if not set. Signed-off-by: Otavio Salvador --- diff --git a/Makefile.in b/Makefile.in index f64ffe3..fb13749 100644 --- a/Makefile.in +++ b/Makefile.in @@ -36,6 +36,7 @@ datadir = @datadir@ mandir = @mandir@ man1dir = $(mandir)/man1 pkgconfigdir = $(libdir)/pkgconfig +instroot ?= $(DESTDIR) #--------------------------------------