### -*- 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