summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2006-05-30 08:20:54 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2006-05-30 08:20:54 +0000
commit041ba7cca04ccccdb9de71488fab853d1d5ef38e (patch)
tree72227a795b21e4284a3644df75227ee5bd8faa20
parent8e06ef91c2d4a7d9d3d7cd977c36a1e2c5e8d055 (diff)
Don't error on clean without unpack
-rw-r--r--toolchain/gdb/gdb.mk12
1 files changed, 9 insertions, 3 deletions
diff --git a/toolchain/gdb/gdb.mk b/toolchain/gdb/gdb.mk
index 02fc53179..2b8378f0a 100644
--- a/toolchain/gdb/gdb.mk
+++ b/toolchain/gdb/gdb.mk
@@ -97,7 +97,9 @@ gdb_target: ncurses $(TARGET_DIR)/usr/bin/gdb
gdb_target-source: $(DL_DIR)/$(GDB_SOURCE)
gdb_target-clean:
- $(MAKE) -C $(GDB_DIR) clean
+ @if [ -d $(GDB_DIR)/Makefile ] ; then \
+ $(MAKE) -C $(GDB_DIR) clean ; \
+ fi;
gdb_target-dirclean:
rm -rf $(GDB_DIR)
@@ -152,7 +154,9 @@ endif
gdbserver: $(TARGET_DIR)/usr/bin/gdbserver
gdbserver-clean:
- $(MAKE) -C $(GDB_SERVER_DIR) clean
+ @if [ -d $(GDB_SERVER_DIR)/Makefile ] ; then \
+ $(MAKE) -C $(GDB_SERVER_DIR) clean ; \
+ fi;
gdbserver-dirclean:
rm -rf $(GDB_SERVER_DIR)
@@ -196,7 +200,9 @@ $(TARGET_CROSS)gdb: $(GDB_HOST_DIR)/gdb/gdb
gdbhost: $(TARGET_CROSS)gdb
gdbhost-clean:
- $(MAKE) -C $(GDB_HOST_DIR) clean
+ @if [ -d $(GDB_HOST_DIR)/Makefile ] ; then \
+ $(MAKE) -C $(GDB_HOST_DIR) clean ; \
+ fi;
gdbhost-dirclean:
rm -rf $(GDB_HOST_DIR)