mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 13:55:40 +08:00
Checking for fucking spaces in the directory name
This commit is contained in:
@@ -27,11 +27,15 @@ MAKEFLAGS += --no-print-directory
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
PAPARAZZI_SRC=$(shell pwd)
|
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),)
|
ifeq ($(PAPARAZZI_HOME),)
|
||||||
PAPARAZZI_HOME=$(PAPARAZZI_SRC)
|
PAPARAZZI_HOME=$(PAPARAZZI_SRC)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
LIB=sw/lib
|
LIB=sw/lib
|
||||||
AIRBORNE=sw/airborne
|
AIRBORNE=sw/airborne
|
||||||
COCKPIT=sw/ground_segment/cockpit
|
COCKPIT=sw/ground_segment/cockpit
|
||||||
|
|||||||
Reference in New Issue
Block a user