From 166809673552eb2a3a546fd01151d25787c4280e Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Nov 22 2010 11:44:21 +0000 Subject: 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) #--------------------------------------