
PLOTS = trajectories.png waveform.png
CSV = trajectories.csv waveform.csv

-include make.conf

ifdef SIMULATIONS_DIRECTORY
PLOTFLAGS = --simulations-directory $(SIMULATIONS_DIRECTORY)
endif

all: $(PLOTS)

$(PLOTS): %.png: %.m
	wolframscript -script $< $(PLOTFLAGS)

clean:
	rm -f $(PLOTS) $(CSV)
