Makefile.include (5cc619db5c34146ee821acd08382b9d78579b52e) | Makefile.include (16f8259ca77d04f95e5ca90be1b1894ed45816c0) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 |
|
1ifneq ($(O),) 2ifeq ($(origin O), command line) | 2ifneq ($(O),) 3ifeq ($(origin O), command line) |
3 ABSOLUTE_O := $(realpath $(O)) 4 dummy := $(if $(ABSOLUTE_O),,$(error O=$(O) does not exist)) | 4 dummy := $(if $(shell test -d $(O) || echo $(O)),$(error O=$(O) does not exist),) 5 ABSOLUTE_O := $(shell cd $(O) ; pwd) |
5 OUTPUT := $(ABSOLUTE_O)/$(if $(subdir),$(subdir)/) 6 COMMAND_O := O=$(ABSOLUTE_O) 7ifeq ($(objtree),) 8 objtree := $(O) 9endif 10endif 11endif 12 13# check that the output directory actually exists 14ifneq ($(OUTPUT),) | 6 OUTPUT := $(ABSOLUTE_O)/$(if $(subdir),$(subdir)/) 7 COMMAND_O := O=$(ABSOLUTE_O) 8ifeq ($(objtree),) 9 objtree := $(O) 10endif 11endif 12endif 13 14# check that the output directory actually exists 15ifneq ($(OUTPUT),) |
15OUTDIR := $(realpath $(OUTPUT)) | 16OUTDIR := $(shell cd $(OUTPUT) && pwd) |
16$(if $(OUTDIR),, $(error output directory "$(OUTPUT)" does not exist)) 17endif 18 19# 20# Include saner warnings here, which can catch bugs: 21# 22EXTRA_WARNINGS := -Wbad-function-cast 23EXTRA_WARNINGS += -Wdeclaration-after-statement --- 79 unchanged lines hidden --- | 17$(if $(OUTDIR),, $(error output directory "$(OUTPUT)" does not exist)) 18endif 19 20# 21# Include saner warnings here, which can catch bugs: 22# 23EXTRA_WARNINGS := -Wbad-function-cast 24EXTRA_WARNINGS += -Wdeclaration-after-statement --- 79 unchanged lines hidden --- |