]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
build: add support for "DESTDIR" variable
authorOtavio Salvador <otavio@ossystems.com.br>
Fri, 19 Nov 2010 15:54:53 +0000 (13:54 -0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 22 Nov 2010 11:44:21 +0000 (12:44 +0100)
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 <otavio@ossystems.com.br>
Makefile.in

index f64ffe339bae84a0e6d8d45a02c2d7e8902fab8d..fb137493e9765e50e9ad7ddc8720981505cca6b0 100644 (file)
@@ -36,6 +36,7 @@ datadir = @datadir@
 mandir = @mandir@
 man1dir = $(mandir)/man1
 pkgconfigdir = $(libdir)/pkgconfig
+instroot ?= $(DESTDIR)
 
 #--------------------------------------