On 29/06/2015 14:30, Ramon Medeiros wrote:
Fix directory checking on Makefile.
Signed-off-by: Ramon Medeiros <ramonn(a)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 \
Only
@if test "$(systemdsystemunitdir)"
is not enough?
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; \