[Kimchi-devel] [PATCH 2/2] Issue #670: openSUSE: problem while building Kimchi

Ramon Medeiros ramonn at linux.vnet.ibm.com
Mon Jun 29 17:30:06 UTC 2015


Fix directory checking on Makefile.

Signed-off-by: Ramon Medeiros <ramonn at linux.vnet.ibm.com>
---
 Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 1a0c8e7..0b46086 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -115,11 +115,11 @@ ChangeLog:
 	fi
 
 install-data-local:
-	@if  test -d $(systemdsystemunitdir) ; then \
+	@if test "$(systemdsystemunitdir)" != "" && test -d $(systemdsystemunitdir) ; then \
 		mkdir -p $(DESTDIR)/$(systemdsystemunitdir); \
 		$(INSTALL_DATA) contrib/kimchid.service.fedora $(DESTDIR)/$(systemdsystemunitdir)/kimchid.service; \
 	else \
-		mkdir -p $(DESTDIR)/etc/init.d/ \
+		mkdir -p $(DESTDIR)/etc/init.d/; \
 		$(INSTALL_DATA) contrib/kimchid.sysvinit $(DESTDIR)/etc/init.d/kimchid; \
 		chmod +x $(DESTDIR)/etc/init.d/kimchid; \
     fi; \
-- 
2.1.0




More information about the Kimchi-devel mailing list