summaryrefslogtreecommitdiff
path: root/Makefile.fetch
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-11-29 10:04:31 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2012-11-29 10:15:51 +0100
commit3051f8be18ab878399a9850474876d4c8bd01e5d (patch)
tree7c3ab232ce28996ecd15c2f2293a9765e01bbfdd /Makefile.fetch
parentffb8f58ee9da347c3cb9e1c6f87576348278f2f8 (diff)
create its own target for download..
..which is created (touched) *after* successful download of all tarballs. fetch.log is not a good target because we touch it along the way. Note: This is necessary only because we write pointless? date into fetch.log. Otherwise 'download' could be phony target, thanks to the rule being empty if we don't need to download anything. Change-Id: I2380ab189833e03758ddd9f9bf54be38c8fa1dbe
Diffstat (limited to 'Makefile.fetch')
-rw-r--r--Makefile.fetch5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.fetch b/Makefile.fetch
index 249502d209dd..455ab998bcbd 100644
--- a/Makefile.fetch
+++ b/Makefile.fetch
@@ -68,9 +68,9 @@ define fetch_Optional
$(if $(filter ALL,$(DO_FETCH_TARBALLS))$(filter $1,$(fetch_BUILD_TYPE)),$2)
endef
-download: $(fetch_LOGFILE)
+download: $(WORKDIR)/download
-$(fetch_LOGFILE): $(SRCDIR)/config_host.mk $(SRCDIR)/download.lst $(SRCDIR)/Makefile.fetch
+$(WORKDIR)/download: $(SRCDIR)/config_host.mk $(SRCDIR)/download.lst $(SRCDIR)/Makefile.fetch
@mkdir -p $(TARFILE_LOCATION)/tmp
@date >> $(fetch_LOGFILE)
$(foreach item, \
@@ -193,5 +193,6 @@ $(fetch_LOGFILE): $(SRCDIR)/config_host.mk $(SRCDIR)/download.lst $(SRCDIR)/Make
$(call fetch_Optional,MOZ,$(MOZ_ZIP_LIB)) \
$(call fetch_Optional,MOZ,$(MOZ_ZIP_RUNTIME)) \
,$(call fetch_Download_item,http://dev-www.libreoffice.org/mozilla,$(item),no-sum))
+ @mkdir -p $(dir $@) && touch $@
# vim: set noet sw=4 ts=4: