[beast/devel: 24/77] BUILD: introduce recursive "download" and "download-local" make targets



commit 776e19524f1f2f2cb1c8864c8fff1e2fde06dc0d
Author: Tim Janik <timj gnu org>
Date:   Sat Apr 6 14:26:01 2013 +0200

    BUILD: introduce recursive "download" and "download-local" make targets

 Makefile.decl |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.decl b/Makefile.decl
index 27a9a09..1c11f8d 100644
--- a/Makefile.decl
+++ b/Makefile.decl
@@ -22,6 +22,13 @@ QSTDERR = $(Q:@=2>/dev/null)
 AM_CFLAGS = -D_BIRNET_SOURCE_EXTENSIONS
 AM_CXXFLAGS = -D_BIRNET_SOURCE_EXTENSIONS
 
+# == download ==
+# recursive rule supported by all Makefiles to download files hosted online
+.PHONY: download download-recursive download-local
+download: download-local download-recursive
+download-recursive:
+       $(Q) for subdir in $(SUBDIRS) ; do test "$$subdir" = '.' || $(MAKE) -C "$$subdir" $(AM_MAKEFLAGS) 
download || exit $$? ; done
+
 # === distfile-list ===
 # recursive rule supported by all Makefiles to generate a list of all files
 # listed as DISTFILES. this asserts a writable file named $DISTFILE_LIST.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]