summaryrefslogtreecommitdiff
path: root/xmds2/realistic_Rb/Makefile.par
diff options
context:
space:
mode:
Diffstat (limited to 'xmds2/realistic_Rb/Makefile.par')
-rw-r--r--xmds2/realistic_Rb/Makefile.par32
1 files changed, 32 insertions, 0 deletions
diff --git a/xmds2/realistic_Rb/Makefile.par b/xmds2/realistic_Rb/Makefile.par
new file mode 100644
index 0000000..cc21c7b
--- /dev/null
+++ b/xmds2/realistic_Rb/Makefile.par
@@ -0,0 +1,32 @@
+### -*- make -*-
+### This file is part of the Debian xmds package
+### Copyright (C) 2006 Rafael Laboissiere
+### This file is relased under the GNU General Public License
+### NO WARRANTIES!
+
+### This makefile can be used to build and run the XMDS examples
+
+
+PARAMS_FILES = $(wildcard *.params)
+PP_DIR = $(PARAMS_FILES:%.params=%)
+CALC_XSIL_FILES = $(PARAMS_FILES:%.params=%/data.xsil)
+
+default: $(CALC_XSIL_FILES)
+
+$(CALC_XSIL_FILES): %/data.xsil : % %.params
+ echo processing $$(dirname $(@)) dir
+ $(MAKE) -C $$(dirname $(@)) -f ../Makefile.pp SCRIPTS_DIR=../ PARAMS_FILE=../$<.params
+
+$(PP_DIR): % : %.params
+ echo need to make dir
+ [ -d $@ ] || mkdir -p $@
+
+clean:
+ for d in $(PP_DIR); \
+ do $(MAKE) -C $$d SCRIPTS_DIR=../ -f ../Makefile.pp $@; done
+
+real_clean:
+ for d in $(PP_DIR); \
+ do $(MAKE) -C $$d SCRIPTS_DIR=../ -f ../Makefile.pp $@; done
+
+.PHONY: all clean