|
|
|
|
|
|
|
|
|
|
xen-ia64-devel
[Xen-devel] [PATCH] fix make install under tools/debugger/xenitp
Fix make install under tools/debugger/xenitp
This patch fixes the following error with make install under
the directory, tools/debugger/xenitp by checking whether
the variable is length zero string.
> # make install
> ../../../tools/cross-install -d -m0755 -p //usr/bin
> [ -z " xenitp" ] || ../../../tools/cross-install -d -m0755 -p
> //usr/lib/xen/bin
> ../../../tools/cross-install -d -m0755 -p //usr/share/man/man1
> ../../../tools/cross-install -d -m0755 -p //usr/share/man/man8
> ../../../tools/cross-install -m0755 -p //usr/bin
> install: too few arguments
> Try `install --help' for more information.
> make: *** [install] Error 1
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
diff -r dff09c4e068d tools/debugger/xenitp/Makefile
--- a/tools/debugger/xenitp/Makefile Fri Sep 19 11:47:26 2008 +0900
+++ b/tools/debugger/xenitp/Makefile Wed Sep 24 10:58:28 2008 +0900
@@ -30,10 +30,16 @@
[ -z "$(LIBBIN)" ] || $(INSTALL_DIR) $(DESTDIR)$(PRIVATE_BINDIR)
$(INSTALL_DIR) $(DESTDIR)$(MAN1DIR)
$(INSTALL_DIR) $(DESTDIR)$(MAN8DIR)
- $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR)
+ if [ "x$(SCRIPTS)" != "x" ]; then \
+ $(INSTALL_PROG) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR); \
+ fi
[ -z "$(LIBBIN)" ] || $(INSTALL_PROG) $(LIBBIN)
$(DESTDIR)$(PRIVATE_BINDIR)
- $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR)
- $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR)
+ if [ "x$(MAN1)" != "x" ]; then \
+ $(INSTALL_DATA) $(MAN1) $(DESTDIR)$(MAN1DIR); \
+ fi
+ if [ "x$(MAN1)" != "x" ]; then \
+ $(INSTALL_DATA) $(MAN8) $(DESTDIR)$(MAN8DIR); \
+ fi
.PHONY: clean
clean:
--
yamahata
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] fix make install under tools/debugger/xenitp,
Isaku Yamahata <=
|
|
|
|
|