[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [6119] fail with a more descriptive error if the ARC
From: |
Felix Ruess |
Subject: |
[paparazzi-commits] [6119] fail with a more descriptive error if the ARCHDIR is not set, probably because no target/board was defined |
Date: |
Fri, 08 Oct 2010 22:29:45 +0000 |
Revision: 6119
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6119
Author: flixr
Date: 2010-10-08 22:29:45 +0000 (Fri, 08 Oct 2010)
Log Message:
-----------
fail with a more descriptive error if the ARCHDIR is not set, probably because
no target/board was defined
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/Makefile
Modified: paparazzi3/trunk/sw/airborne/Makefile
===================================================================
--- paparazzi3/trunk/sw/airborne/Makefile 2010-10-08 22:29:39 UTC (rev
6118)
+++ paparazzi3/trunk/sw/airborne/Makefile 2010-10-08 22:29:45 UTC (rev
6119)
@@ -32,10 +32,16 @@
#SRC_ARCH = $(PAPARAZZI_SRC)/sw/airborne/$(ARCHDIR)
ifneq ($(MAKECMDGOALS),clean)
-include $(PAPARAZZI_HOME)/var/$(AIRCRAFT)/Makefile.ac
-$(TARGET).srcs += $($(TARGET).EXTRA_SRCS)
-include ../../conf/Makefile.local
-include ../../conf/Makefile.$($(TARGET).ARCHDIR)
+ include $(PAPARAZZI_HOME)/var/$(AIRCRAFT)/Makefile.ac
+ $(TARGET).srcs += $($(TARGET).EXTRA_SRCS)
+ include ../../conf/Makefile.local
+
+# check if ARCHDIR is set
+ ifeq ($($(TARGET).ARCHDIR), )
+ $(error Architecture not set, maybe you forgot to add the target? e.g.
<target name="tunnel" board="twog_1"/>)
+ else
+ include ../../conf/Makefile.$($(TARGET).ARCHDIR)
+ endif
endif
$(TARGET).install : warn_conf
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [6119] fail with a more descriptive error if the ARCHDIR is not set, probably because no target/board was defined,
Felix Ruess <=