summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5c9685d73d..799c8d59be 100644
--- a/Makefile
+++ b/Makefile
@@ -166,6 +166,7 @@ make += $(MAKE) MAKELEVEL=$(MAKELEVEL) --no-print-directory
##############################################################################
# Commands
+all : $(PROJECT_OUTPUTDIR)
all : scripts
all : runtime
all : compiler
@@ -230,6 +231,12 @@ library : .latest-library
##############################################################################
# Rules
+$(PROJECT_OUTPUTDIR) :
+ $(MKDIR) -p $(dir $(PROJECT_OUTPUTDIR))
+ $(if $(PROJECT_OUTPUTDIR_LINK),\
+ $(LN) -s $(PROJECT_OUTPUTDIR_LINK) $(PROJECT_OUTPUTDIR),\
+ $(MKDIR) $(PROJECT_OUTPUTDIR))
+
$(SCRIPTS_WRAPPER_LINKS):
$(LN) -s $(SCRIPTS_WRAPPER_NAME) $@;