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)
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)
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)