mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
Makefile: support relative paths for out of tree builds
And complain if the output directory cannot be created.
This commit is contained in:
parent
49e3aba2d9
commit
e3556c8862
@ -30,7 +30,8 @@ TAR_OPTIONS=$(subst ",, $(BR2_TAR_OPTIONS)) -xf
|
|||||||
BASE_DIR:=$(shell pwd)
|
BASE_DIR:=$(shell pwd)
|
||||||
ifdef O
|
ifdef O
|
||||||
ifeq ("$(origin O)", "command line")
|
ifeq ("$(origin O)", "command line")
|
||||||
BASE_DIR := $(O)
|
BASE_DIR := $(shell mkdir -p $(O) && cd $(O) && pwd)
|
||||||
|
$(if $(BASE_DIR),, $(error output directory "$(O)" does not exist))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user