# PYTHON
CONFIGPY    = example_configured_application.py example_barplot.py
CONFIGURED  = $(CONFIGPY:.py=.out)
PYTHONFILES = $(filter-out $(CONFIGPY), $(wildcard *.py))
OUTFILES    = $(PYTHONFILES:.py=.out)

PYTHON	    = python

all:	$(CONFIGURED) $(OUTFILES) $(OUTTEX)

$(CONFIGURED) : %.out : %.py
	$(PYTHON) $< --config config.ini &> $@

$(OUTFILES) : %.out : %.py
	$(PYTHON) $< > $@

cleanfiles:
	rm -f *.db
	rm -f *.h5

clean:
	rm -f *.db
	rm -f *.h5
	rm -f python-logo.png
	rm -f *.pyc
	rm -f *.out
	rm -f *.png
	rm -f *.jpg
	rm -f *.svg
	rm -f *.plot

