GNUPLOT 		= gnuplot
IMAGEMAGIC	= convert
FILES 		= $(basename $(filter-out wasserstoff_aufenthalt_default.gpl, $(wildcard *.gpl)))
FILESJPG 	= $(addsuffix .jpg,$(FILES))

.PHONY: all makedir clean

all:
	@echo "Erstelle JPG-Dateien..."
	@$(MAKE) $(FILESJPG)

%.eps: %.gpl wasserstoff_aufenthalt_default.gpl makefile
	$(GNUPLOT) $<

%.jpg : %.eps
	@echo "  Erzeuge JPG-Datei..."
	@$(IMAGEMAGIC) -density 300x300 -quality 100% $< $@

## end of Makefile
