From: Mike Snitzer Date: Fri, 17 Apr 2009 22:07:58 +0000 (-0400) Subject: multipath-tools: install libmultipath.so in $syslibdir X-Git-Tag: 0.4.9~123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=df5ddb3a4f42c1ba280ebe45e22dda149a03e7ac;p=platform%2Fupstream%2Fmultipath-tools.git multipath-tools: install libmultipath.so in $syslibdir Allows libmultipath.so to be installed in the proper lib dir (e.g. /lib64). $libdir is already used for /lib/multipath Signed-off-by: Mike Snitzer --- diff --git a/Makefile.inc b/Makefile.inc index 3e5bca0..1fe9782 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -21,6 +21,7 @@ multipathdir = $(TOPDIR)/libmultipath mandir = $(prefix)/usr/share/man/man8 man5dir = $(prefix)/usr/share/man/man5 rcdir = $(prefix)/etc/init.d +syslibdir = $(prefix)/lib libdir = $(prefix)/lib/multipath GZIP = /bin/gzip -9 -c diff --git a/libmultipath/Makefile b/libmultipath/Makefile index 915d2f2..13178bd 100644 --- a/libmultipath/Makefile +++ b/libmultipath/Makefile @@ -26,12 +26,12 @@ $(LIBS): $(OBJS) $(CC) $(SHARED_FLAGS) -Wl,-soname,$@ $(CFLAGS) -o $@ $(OBJS) install: - $(INSTALL_PROGRAM) -d $(DESTDIR)$(prefix)/lib - $(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(prefix)/lib/$(LIBS) + $(INSTALL_PROGRAM) -d $(DESTDIR)$(syslibdir) + $(INSTALL_PROGRAM) -m 755 $(LIBS) $(DESTDIR)$(syslibdir)/$(LIBS) $(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(libdir) uninstall: - rm -f $(DESTDIR)$(prefix)/lib/$(LIBS) + rm -f $(DESTDIR)$(syslibdir)/$(LIBS) clean: rm -f core *.a *.o *.gz *.so