blob: 71fba31c4dc39e031da354766f976c81aa52a32b (
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
|
### -*- make -*-
### This makefile can be used to build and run the XMDS examples
GNUPLOT_FILES = $(wildcard *.gp)
SCRIPTS_DIR = .
eps_targets = $(wildcard *.eps)
eps_bb_targets = $(eps_targets:%.eps=%.bb)
pdf_targets = $(eps_targets:%.eps=%.pdf)
png_targets = $(pdf_targets:%.pdf=%.png)
fig: png
pdf: $(pdf_targets)
# fix bounding box
$(eps_bb_targets): %.bb : %.eps
@cat $< | ps2eps -q -B > $@
$(pdf_targets): %.pdf : %.bb
epspdf $< $@
png: $(png_targets)
$(png_targets): %.png : %.pdf
convert -density 300 $< $@
clean:
rm -f *.pdf
rm -f *.eps
rm -f *.bb
real_clean: clean
rm -f *.png
.PRECIOUS: %.run %.xsil %.m
.PHONY: all clean
|