diff options
Diffstat (limited to 'xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.par')
-rw-r--r-- | xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.par | 53 |
1 files changed, 6 insertions, 47 deletions
diff --git a/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.par b/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.par index ad7b0b6..cc21c7b 100644 --- a/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.par +++ b/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.par @@ -6,14 +6,6 @@ ### This makefile can be used to build and run the XMDS examples -XMDS = xmds2 -XSIL2GRAPHICS = xsil2graphics - -XMDS_FILES = $(shell ls *.xmds) -RUN_FILES = $(patsubst %.xmds,%.run,$(XMDS_FILES)) -CC_FILES = $(patsubst %.xmds,%.cc,$(XMDS_FILES)) -XSIL_FILES = $(patsubst %.xmds,%.xsil,$(XMDS_FILES)) -M_FILES = $(patsubst %.xmds,%.m,$(XMDS_FILES)) PARAMS_FILES = $(wildcard *.params) PP_DIR = $(PARAMS_FILES:%.params=%) @@ -23,51 +15,18 @@ 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 + $(MAKE) -C $$(dirname $(@)) -f ../Makefile.pp SCRIPTS_DIR=../ PARAMS_FILE=../$<.params $(PP_DIR): % : %.params echo need to make dir [ -d $@ ] || mkdir -p $@ - - -all: $(RUN_FILES) - -%.run: %.xmds - $(XMDS) $< - mv $(patsubst %.xmds,%,$<) $@ - -%.xsil: %.run - ./$< --E1o=0 --E3o=0 - -%.m: %.xsil - $(XSIL2GRAPHICS) $< - -plot: $(M_FILES) - octave pp.m - clean: - rm -f $(CC_FILES) $(RUN_FILES) $(M_FILES) $(XSIL_FILES) *.wisdom.fftw3 *.dat octave-core *.wisdom *.pdf - rm -f $(png_targets) - rm -f $(eps_targets) - -eps_targets = $(wildcard *.eps) -pdf_targets = $(eps_targets:%.eps=%.pdf) -png_targets = $(pdf_targets:%.pdf=%.png) - -png: pdf $(png_targets) - -$(png_targets): %.png : %.pdf - convert -density 300 $< $@ - -pdf: $(pdf_targets) - -$(pdf_targets): %.pdf : %.eps - cat $< | ps2eps -B > __tt.eps - epspdf __tt.eps $@ - rm -f __tt.eps - #ps2eps -B $< | epspdf $< $@ + 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 -.PRECIOUS: %.run %.xsil %.m .PHONY: all clean |