diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2013-04-24 21:23:39 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2013-04-24 21:23:39 -0700 |
commit | adb3e3df44f6a3288d957ec2a256eb2b2c02821f (patch) | |
tree | b3500bc11cb176eaa2f2b5c4a383ec553e32594d /Makefile.in | |
parent | 4944ab3c0296f906549d7eb3417fbaa771e476fe (diff) | |
download | spike-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.in | 10 |
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 #------------------------------------------------------------------------- |