summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-02-10 13:53:45 +0200
committerTor Lillqvist <tml@iki.fi>2012-02-10 14:14:35 +0200
commit386161779b55755f145106cd53c5df80967e1c3b (patch)
tree7c9ce9a09fcac4717acc079b2d3bd91ede4b9847 /Makefile
parentDon't source config_host.mk as such but put quotes around the variable values (diff)
downloadcore-386161779b55755f145106cd53c5df80967e1c3b.tar.gz
core-386161779b55755f145106cd53c5df80967e1c3b.zip
On Cygwin, Make wants to see Unix-style pathnames
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 38ed6fc31d87..414de9085446 100644
--- a/Makefile
+++ b/Makefile
@@ -365,11 +365,17 @@ endif
#
# Bootstap
#
-$(WORKDIR)/bootstrap:
+ifeq ($(OS_FOR_BUILD),WNT)
+WORKDIR_BOOTSTRAP=$(shell cygpath -u $(WORKDIR))/bootstrap
+else
+WORKDIR_BOOTSTRAP=$(WORKDIR)/bootstrap
+endif
+
+$(WORKDIR_BOOTSTRAP):
@cd $(SRCDIR) && ./bootstrap
@mkdir -p $(dir $@) && touch $@
-bootstrap: $(WORKDIR)/bootstrap
+bootstrap: $(WORKDIR_BOOTSTRAP)
#
# Build