Checking for fucking spaces in the directory name

This commit is contained in:
Pascal Brisset
2008-07-10 07:42:51 +00:00
parent dae0d37d93
commit 45e5f1f183
+5 -1
View File
@@ -27,11 +27,15 @@ MAKEFLAGS += --no-print-directory
endif
PAPARAZZI_SRC=$(shell pwd)
empty=
space=$(empty) $(empty)
ifneq ($(findstring $(space),$(PAPARAZZI_SRC)),)
$(error No fucking spaces allowed in the current directory name)
endif
ifeq ($(PAPARAZZI_HOME),)
PAPARAZZI_HOME=$(PAPARAZZI_SRC)
endif
LIB=sw/lib
AIRBORNE=sw/airborne
COCKPIT=sw/ground_segment/cockpit