Checking for directory existence before calling make recursively

This commit is contained in:
Pascal Brisset
2007-07-27 14:01:23 +00:00
parent 7e14cff712
commit 93f63e5223
+1 -1
View File
@@ -93,7 +93,7 @@ visu3d: lib
static_h: $(MESSAGES_H) $(UBX_PROTOCOL_H) $(DL_PROTOCOL_H)
usb_lib:
@(test -x $(ARMGCC) && (cd sw/airborne/arm7/lpcusb; $(MAKE))) || echo "Not building usb_lib: ARMGCC=$(ARMGCC) not found"
@[ -d sw/airborne/arm7/lpcusb ] && ((test -x $(ARMGCC) && (cd sw/airborne/arm7/lpcusb; $(MAKE))) || echo "Not building usb_lib: ARMGCC=$(ARMGCC) not found") || echo "Not building usb_lib: sw/airborne/arm7/lpcusb directory missing"
$(MESSAGES_H) : $(MESSAGES_XML) $(CONF_XML) $(TOOLS)/gen_messages.out
$(Q)test -d $(STATICINCLUDE) || mkdir -p $(STATICINCLUDE)