[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-aio
Subject:    [PATCH 1/9] fix up install paths
From:       Mike Frysinger <vapier () gentoo ! org>
Date:       2014-05-05 0:56:44
Message-ID: 1399251412-6591-2-git-send-email-vapier () gentoo ! org
[Download RAW message or body]

This is similar to the Fedora patch, but this uses more common conventions
like "DESTDIR" instead of "destdir".

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 src/Makefile | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index eadb336..49f448f 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,6 +1,7 @@
 prefix=/usr
 includedir=$(prefix)/include
 libdir=$(prefix)/lib
+usrlibdir=$(libdir)
 
 CFLAGS ?= -g -fomit-frame-pointer -O2
 CFLAGS += -nostdlib -nostartfiles -Wall -I. -fPIC
@@ -53,11 +54,11 @@ $(libname): $(libaio_sobjs) libaio.map
 	$(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ \
$(libaio_sobjs) $(LINK_FLAGS)  
 install: $(all_targets)
-	install -D -m 644 libaio.h $(includedir)/libaio.h
-	install -D -m 644 libaio.a $(libdir)/libaio.a
-	install -D -m 755 $(libname) $(libdir)/$(libname)
-	ln -sf $(libname) $(libdir)/$(soname)
-	ln -sf $(libname) $(libdir)/libaio.so
+	install -D -m 644 libaio.h $(DESTDIR)$(includedir)/libaio.h
+	install -D -m 644 libaio.a $(DESTDIR)$(usrlibdir)/libaio.a
+	install -D -m 755 $(libname) $(DESTDIR)$(libdir)/$(libname)
+	ln -sf $(libname) $(DESTDIR)$(usrlibdir)/$(soname)
+	ln -sf $(libname) $(DESTDIR)$(usrlibdir)/libaio.so
 
 $(libaio_objs): libaio.h
 
-- 
1.9.2

--
To unsubscribe, send a message with 'unsubscribe linux-aio' in
the body to majordomo@kvack.org.  For more info on Linux AIO,
see: http://www.kvack.org/aio/
Don't email: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic