From fa9311f1ea8c94f66717ee82e4db219e93721690 Mon Sep 17 00:00:00 2001 From: NicJA Date: Fri, 12 Apr 2019 02:40:22 +0000 Subject: [PATCH] use a flag to mark when a file is fetched. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@56211 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- config/make.tmpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config/make.tmpl b/config/make.tmpl index 1581a0e0de..d6cc0555fb 100644 --- a/config/make.tmpl +++ b/config/make.tmpl @@ -3661,10 +3661,16 @@ else %(mmake)-location := %(destination) endif +%(mmake)-fetchedflag := $(%(mmake)-location)/.%(archive)-fetched + #MM %(mmake) : - $(FETCH) -ao "%(archive_origins)" -a %(archive) -s "%(suffixes)" -l $(%(mmake)-location) \ - -d %(destination) -po "%(patches_origins)" -p "%(patches_specs)" + $(Q)$(IF) ! $(TEST) -f $(%(mmake)-fetchedflag) ; then \ + $(ECHO) "Fetching %(archive) ..." \ + && $(FETCH) -ao "%(archive_origins)" -a %(archive) -s "%(suffixes)" -l $(%(mmake)-location) \ + -d %(destination) -po "%(patches_origins)" -p "%(patches_specs)" \ + && $(TOUCH) $(%(mmake)-fetchedflag) ; \ + fi %end #------------------------------------------------------------------------------ -- 2.11.4.GIT