[Buildroot] svn commit: trunk/buildroot/project

jacmet at uclibc.org jacmet at uclibc.org
Tue Sep 16 20:53:45 UTC 2008


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
===================================================================
--- trunk/buildroot/project/Makefile.in	2008-09-16 19:35:42 UTC (rev 23410)
+++ trunk/buildroot/project/Makefile.in	2008-09-16 20:53:45 UTC (rev 23411)
@@ -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
 




More information about the buildroot mailing list