diff mbox

[2/5] multipath-tools: replace install with its variable in makefiles

Message ID 1467393452-1032-3-git-send-email-xose.vazquez@gmail.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Xose Vazquez Perez July 1, 2016, 5:17 p.m. UTC
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: device-mapper development <dm-devel@redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
---
 libmpathpersist/Makefile | 6 +++---
 mpathpersist/Makefile    | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
diff mbox

Patch

diff --git a/libmpathpersist/Makefile b/libmpathpersist/Makefile
index 09d196e..6afd3a8 100644
--- a/libmpathpersist/Makefile
+++ b/libmpathpersist/Makefile
@@ -33,9 +33,9 @@  install: $(LIBS)
 	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(man3dir)
 	$(INSTALL_PROGRAM) -m 755 -d $(DESTDIR)$(incdir)
 	ln -sf $(DESTDIR)$(syslibdir)/$(LIBS) $(DESTDIR)$(syslibdir)/$(DEVLIB)
-	install -m 644 mpath_persistent_reserve_in.3.gz $(DESTDIR)$(man3dir)
-	install -m 644 mpath_persistent_reserve_out.3.gz $(DESTDIR)$(man3dir)
-	install -m 644 mpath_persist.h $(DESTDIR)$(incdir)
+	$(INSTALL_PROGRAM) -m 644 mpath_persistent_reserve_in.3.gz $(DESTDIR)$(man3dir)
+	$(INSTALL_PROGRAM) -m 644 mpath_persistent_reserve_out.3.gz $(DESTDIR)$(man3dir)
+	$(INSTALL_PROGRAM) -m 644 mpath_persist.h $(DESTDIR)$(incdir)
 
 uninstall:
 	$(RM) $(DESTDIR)$(syslibdir)/$(LIBS)
diff --git a/mpathpersist/Makefile b/mpathpersist/Makefile
index 2cc625b..df81372 100644
--- a/mpathpersist/Makefile
+++ b/mpathpersist/Makefile
@@ -16,10 +16,10 @@  $(EXEC): $(OBJS)
 	$(GZIP) $(EXEC).8 > $(EXEC).8.gz
 	
 install:
-	install -d $(DESTDIR)$(bindir)
-	install -m 755 $(EXEC) $(DESTDIR)$(bindir)/
-	install -d $(DESTDIR)$(mandir)
-	install -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
+	$(INSTALL_PROGRAM) -d $(DESTDIR)$(bindir)
+	$(INSTALL_PROGRAM) -m 755 $(EXEC) $(DESTDIR)$(bindir)/
+	$(INSTALL_PROGRAM) -d $(DESTDIR)$(mandir)
+	$(INSTALL_PROGRAM) -m 644 $(EXEC).8.gz $(DESTDIR)$(mandir)
 	
 clean:
 	$(RM) *.o $(EXEC)