summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.fig16
1 files changed, 10 insertions, 6 deletions
diff --git a/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.fig b/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.fig
index d1d8ad1..71fba31 100644
--- a/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.fig
+++ b/xmds2/Nlevels_with_doppler_with_z_4wm/Makefile.fig
@@ -7,19 +7,22 @@ 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: pdf
+fig: png
pdf: $(pdf_targets)
-$(pdf_targets): %.pdf : %.eps
- @cat $< | ps2eps -q -B > __tt.eps
- epspdf __tt.eps $@
- @rm -f __tt.eps
+# fix bounding box
+$(eps_bb_targets): %.bb : %.eps
+ @cat $< | ps2eps -q -B > $@
-png: pdf $(png_targets)
+$(pdf_targets): %.pdf : %.bb
+ epspdf $< $@
+
+png: $(png_targets)
$(png_targets): %.png : %.pdf
convert -density 300 $< $@
@@ -27,6 +30,7 @@ $(png_targets): %.png : %.pdf
clean:
rm -f *.pdf
rm -f *.eps
+ rm -f *.bb
real_clean: clean
rm -f *.png