Skip to contentSkip to conversation

svn commit: trunk/buildroot/project

Buildroot jacmet at uclibc.org 1 participant 1 message Sep 16, 2008

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2008-09-16 13:53:45 -0700 (Tue, 16 Sep 2008) New Revision: 23411

Log:
Makefile: support relative paths for out of tree builds

And complain if the output directory cannot be created.

Modified:
trunk/buildroot/project/Makefile.in

Changeset:
Modified: trunk/buildroot/project/Makefile.in
===================================================================

buildroot/project/Makefile.in +2 -1
@@ -30,7 +30,8 @@
 BASE_DIR:=$(shell pwd)
 ifdef O
 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