df6ba84
From 725a96aaa247cae90f46753ca85dadbf22a64e5f Mon Sep 17 00:00:00 2001
df6ba84
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
df6ba84
Date: Mon, 30 Oct 2017 10:19:47 +0100
df6ba84
Subject: [PATCH] build: do not assume that INSTALL is cp
df6ba84
MIME-Version: 1.0
df6ba84
Content-Type: text/plain; charset=UTF-8
df6ba84
Content-Transfer-Encoding: 8bit
df6ba84
df6ba84
INSTALL is supposed to be `install` in most of the cases which
df6ba84
doesn't work with directories, but works perfectly with files.
df6ba84
df6ba84
Don't do this assumption.
df6ba84
df6ba84
Reported-by: Jiří Vymazal <jvymazal@redhat.com>
df6ba84
References: https://bugzilla.redhat.com/show_bug.cgi?id=1506251
df6ba84
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
df6ba84
---
df6ba84
 Makefile | 5 +++--
df6ba84
 1 file changed, 3 insertions(+), 2 deletions(-)
df6ba84
df6ba84
diff --git a/Makefile b/Makefile
df6ba84
index 781a41d..c6eb229 100644
df6ba84
--- a/Makefile
df6ba84
+++ b/Makefile
df6ba84
@@ -181,8 +181,9 @@ $(PKGCONFNAME): hiredis.h
df6ba84
 	@echo Cflags: -I\$${includedir} -D_FILE_OFFSET_BITS=64 >> $@
df6ba84
 
df6ba84
 install: $(DYLIBNAME) $(STLIBNAME) $(PKGCONFNAME)
df6ba84
-	mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH)
df6ba84
-	$(INSTALL) hiredis.h async.h read.h sds.h adapters $(INSTALL_INCLUDE_PATH)
df6ba84
+	mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_INCLUDE_PATH)/adapters $(INSTALL_LIBRARY_PATH)
df6ba84
+	$(INSTALL) hiredis.h async.h read.h sds.h $(INSTALL_INCLUDE_PATH)
df6ba84
+	$(INSTALL) adapters/*.h $(INSTALL_INCLUDE_PATH)/adapters
df6ba84
 	$(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME)
df6ba84
 	cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIBNAME)
df6ba84
 	$(INSTALL) $(STLIBNAME) $(INSTALL_LIBRARY_PATH)
df6ba84
-- 
df6ba84
2.14.3
df6ba84