diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-11-30 17:17:56 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-11-30 17:17:56 -0500 |
commit | 88913cb1a14eaf3454ba8c7fb27b75786f3e14ef (patch) | |
tree | 28799f0d7001c807f20558582629df8953660b70 /xmds2/realistic_Rb_and_fields/Makefile | |
parent | 6c574f5f886e0614a415593e2e12494e21469c6c (diff) | |
parent | 30d082e4ea50244839fd5537483822e559db8a18 (diff) | |
download | Nresonances-88913cb1a14eaf3454ba8c7fb27b75786f3e14ef.tar.gz Nresonances-88913cb1a14eaf3454ba8c7fb27b75786f3e14ef.zip |
Merge branch 'circ_polarizations'
Diffstat (limited to 'xmds2/realistic_Rb_and_fields/Makefile')
-rw-r--r-- | xmds2/realistic_Rb_and_fields/Makefile | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/xmds2/realistic_Rb_and_fields/Makefile b/xmds2/realistic_Rb_and_fields/Makefile new file mode 100644 index 0000000..bc7cf13 --- /dev/null +++ b/xmds2/realistic_Rb_and_fields/Makefile @@ -0,0 +1,84 @@ +### -*- make -*- +### This file is part of the Debian xmds package +### Copyright (C) 2006 Rafael Laboissiere +### This file is released under the GNU General Public License +### NO WARRANTIES! + +INSTALL = install --mode=664 -D + +### This makefile can be used to build and run the XMDS examples + +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)) + +test_dir = tests +test_result_dir = $(test_dir)/testsuite_results +XMDS_INCLUDES_misc = RbChosenRho.txt RbInits.cdata RbEquations.cdata \ + RbAtomConstants.cdata RbPropEquations.cdata +XMDS_INCLUDES_xmds_in_target_dir = $(XMDS_INCLUDES_misc:%=$(test_dir)/%) +XMDS_INCLUDES_cdata_in_target_dir = $(XMDS_INCLUDES_misc:%=$(test_result_dir)/%) + +MATHEMATICA_DIR = ../../mathemathica_fwm + +XMDS = xmds2 +XSIL2GRAPHICS = xsil2graphics + +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) + +$(XMDS_INCLUDES_cdata_in_target_dir): $(test_result_dir)/% : % + $(INSTALL) $< $@ + +$(XMDS_INCLUDES_xmds_in_target_dir): $(test_dir)/% : % + $(INSTALL) $< $@ + +test: $(XMDS_INCLUDES_cdata_in_target_dir) $(XMDS_INCLUDES_xmds_in_target_dir) + $(INSTALL) $(XMDS_FILES) tests/testsuite/ + cd tests; ./run_tests.py + +test_from_scratch: + rm -r tests/testsuite_results + +$(XMDS_INCLUDES_misc): %: $(MATHEMATICA_DIR)/% + cp $< $@ + +copy_mathematica_generated_files: $(XMDS_INCLUDES_misc) + +$(pdf_targets): %.pdf : %.eps + cat $< | ps2eps -B > __tt.eps + epspdf __tt.eps $@ + rm -f __tt.eps + #ps2eps -B $< | epspdf $< $@ +.PRECIOUS: %.run %.xsil %.m +.PHONY: all clean |