diff options
Diffstat (limited to 'xmds2/realistic_Rb/Makefile.par')
-rw-r--r-- | xmds2/realistic_Rb/Makefile.par | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/xmds2/realistic_Rb/Makefile.par b/xmds2/realistic_Rb/Makefile.par index cc21c7b..5fddce1 100644 --- a/xmds2/realistic_Rb/Makefile.par +++ b/xmds2/realistic_Rb/Makefile.par @@ -7,15 +7,24 @@ ### This makefile can be used to build and run the XMDS examples +XMDS_FILES = $(wildcard *.xmds) +BASE_NAME = $(patsubst %.xmds,%,$(XMDS_FILES)) +RUN_FILES = $(patsubst %.xmds,%.run,$(XMDS_FILES)) +XSIL_FILES = $(patsubst %.xmds,%.xsil,$(XMDS_FILES)) PARAMS_FILES = $(wildcard *.params) PP_DIR = $(PARAMS_FILES:%.params=%) -CALC_XSIL_FILES = $(PARAMS_FILES:%.params=%/data.xsil) +CALC_XSIL_FILES = $(PARAMS_FILES:%.params=%/$(BASE_NAME).xsil) default: $(CALC_XSIL_FILES) -$(CALC_XSIL_FILES): %/data.xsil : % %.params +$(CALC_XSIL_FILES): %/$(BASE_NAME).xsil : % %.params echo processing $$(dirname $(@)) dir - $(MAKE) -C $$(dirname $(@)) -f ../Makefile.pp SCRIPTS_DIR=../ PARAMS_FILE=../$<.params + $(MAKE) -C $$(dirname $(@)) \ + -f ../Makefile.pp \ + SCRIPTS_DIR=../ \ + PARAMS_FILE=../$<.params \ + XSIL_FILES=$(XSIL_FILES) \ + RUN_FILES=$(RUN_FILES) $(PP_DIR): % : %.params echo need to make dir |