]> Pileus Git - ~andy/linux/blobdiff - tools/scripts/Makefile.include
perf tools: Correct Makefile.include
[~andy/linux] / tools / scripts / Makefile.include
index 00a05f45b39aea606c3568d214ef6aa49d86214f..f03e681f889198604febb510dac7033f27477c56 100644 (file)
@@ -1,3 +1,4 @@
+ifneq ($(O),)
 ifeq ($(origin O), command line)
        dummy := $(if $(shell test -d $(O) || echo $(O)),$(error O=$(O) does not exist),)
        ABSOLUTE_O := $(shell cd $(O) ; pwd)
@@ -7,9 +8,10 @@ ifeq ($(objtree),)
        objtree := $(O)
 endif
 endif
+endif
 
-ifneq ($(OUTPUT),)
 # check that the output directory actually exists
+ifneq ($(OUTPUT),)
 OUTDIR := $(shell cd $(OUTPUT) && /bin/pwd)
 $(if $(OUTDIR),, $(error output directory "$(OUTPUT)" does not exist))
 endif