aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2013-04-24 21:23:39 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2013-04-24 21:23:39 -0700
commitadb3e3df44f6a3288d957ec2a256eb2b2c02821f (patch)
treeb3500bc11cb176eaa2f2b5c4a383ec553e32594d /Makefile.in
parent4944ab3c0296f906549d7eb3417fbaa771e476fe (diff)
downloadspike-adb3e3df44f6a3288d957ec2a256eb2b2c02821f.zip
spike-adb3e3df44f6a3288d957ec2a256eb2b2c02821f.tar.gz
spike-adb3e3df44f6a3288d957ec2a256eb2b2c02821f.tar.bz2
add range(start, end) method to Makefile
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index fecd5b0..2630dc4 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -120,6 +120,16 @@ INSTALL_EXE := $(INSTALL) -m 555
STOW := @stow@
#-------------------------------------------------------------------------
+# Range helper function. $(call range,3,6) generates the string 3 4 5
+#-------------------------------------------------------------------------
+
+range = $(shell _i=$(1); \
+ while [[ $$_i -lt $(2) ]]; do \
+ echo -n "$$_i "; \
+ ((_i = _i + 1)); \
+ done)
+
+#-------------------------------------------------------------------------
# Include subproject makefile fragments
#-------------------------------------------------------------------------