summaryrefslogtreecommitdiff
path: root/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-12-01 13:44:51 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2011-12-01 13:44:51 -0500
commitec6c17c8e454254f84ad992c4d4c3f71d00823df (patch)
tree4da76480e5a57025e4282e13c2f65b6fce17a2bb /xmds2/Nlevels_with_doppler_with_z_4wm/Makefile
parentde9ca9fe7f38020fa7573c6843e7104edf3e0d01 (diff)
downloadNresonances-ec6c17c8e454254f84ad992c4d4c3f71d00823df.tar.gz
Nresonances-ec6c17c8e454254f84ad992c4d4c3f71d00823df.zip
init of the calculations with Doppler broadening
Diffstat (limited to 'xmds2/Nlevels_with_doppler_with_z_4wm/Makefile')
-rw-r--r--xmds2/Nlevels_with_doppler_with_z_4wm/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile b/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile
new file mode 100644
index 0000000..578f2b0
--- /dev/null
+++ b/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile
@@ -0,0 +1,54 @@
+### -*- 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
+
+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))
+
+XMDS = xmds2
+XSIL2GRAPHICS = xsil2graphics
+
+all: $(M_FILES)
+
+%.run: %.xmds
+ $(XMDS) $<
+ mv $(patsubst %.xmds,%,$<) $@
+
+%.xsil: %.run
+ ./$<
+
+%.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)
+
+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 $< $@
+.PRECIOUS: %.run %.xsil %.m
+.PHONY: all clean