summaryrefslogtreecommitdiff
path: root/xmds2/Nlevels_no_dopler_with_z_4wm/Makefile
blob: 7a65813dd91ee01e7ae39c70022460ceb8e55333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
###  -*- 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

eps_targets  = $(wildcard *.eps)
pdf_targets  = $(eps_targets:%.eps=%.pdf)	

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