[stgt] [PATCH 2/2] Fix make install when no modules

Andy Grover agrover at redhat.com
Sat Oct 5 01:50:19 CEST 2013


If no modules, the 'install -m' will generate an error.

Signed-off-by: Andy Grover <agrover at redhat.com>
---
 usr/Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/usr/Makefile b/usr/Makefile
index a9c2238..7e8623b 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -94,8 +94,10 @@ bs_rbd.so: bs_rbd.c
 install: $(PROGRAMS) $(MODULES)
 	install -d -m 755 $(DESTDIR)$(sbindir)
 	install -m 755 $(PROGRAMS) $(DESTDIR)$(sbindir)
+ifneq ($(MODULES),)
 	install -d -m 755 $(DESTDIR)$(libdir)/backing-store
 	install -m 755 $(MODULES) $(DESTDIR)$(libdir)/backing-store
+endif
 
 .PHONY: clean
 clean:
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list