summaryrefslogtreecommitdiff
path: root/xmds2/lambda_no_dopler_no_z.example/Makefile
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-05-21 15:29:56 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2011-05-21 15:29:56 -0400
commit44b43d305e8a0ede233455f4b006e5e5d93209d2 (patch)
treedbce2953ccdf78b373eb6f3c66544a348db2944f /xmds2/lambda_no_dopler_no_z.example/Makefile
parent3a0ac28ea2c20fe81c5f63038eb5bc8974342b6d (diff)
downloadNresonances-44b43d305e8a0ede233455f4b006e5e5d93209d2.tar.gz
Nresonances-44b43d305e8a0ede233455f4b006e5e5d93209d2.zip
moved 3 level system to examle dir
Diffstat (limited to 'xmds2/lambda_no_dopler_no_z.example/Makefile')
-rw-r--r--xmds2/lambda_no_dopler_no_z.example/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/xmds2/lambda_no_dopler_no_z.example/Makefile b/xmds2/lambda_no_dopler_no_z.example/Makefile
new file mode 100644
index 0000000..c9a3d8b
--- /dev/null
+++ b/xmds2/lambda_no_dopler_no_z.example/Makefile
@@ -0,0 +1,37 @@
+### -*- 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) plot
+
+%.run: %.xmds
+ $(XMDS) $<
+ mv $(patsubst %.xmds,%,$<) $@
+
+%.xsil: %.run
+ ./$<
+
+%.m: %.xsil
+ $(XSIL2GRAPHICS) $<
+
+plot: lambda_no_dopler_no_z.m
+ octave pp.m
+
+clean:
+ rm -f $(CC_FILES) $(RUN_FILES) $(M_FILES) $(XSIL_FILES) *.wisdom.fftw3 *.dat octave-core *.wisdom
+
+.PRECIOUS: %.run %.xsil %.m
+.PHONY: all clean