PYTHON = python3

all: plot.png

plot.png: out.txt Makefile
	grace -hardcopy -hdevice PNG -printfile $@ $<

out.txt: main.py fft.py
	${PYTHON} $< > $@

clean:
	rm -rf out.* plot.* *.pyc __pycache__
