X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/dbded051d69cc5ba556884eb285feba032e09d29..829259826b29edc284ec43810bb505a832091dda:/examples/fft/Makefile diff --git a/examples/fft/Makefile b/examples/fft/Makefile index fa1e89d..20aeaf3 100644 --- a/examples/fft/Makefile +++ b/examples/fft/Makefile @@ -4,10 +4,18 @@ INPUT2 = sin_2067Hz_0.005_ampli_128samples.wav INPUT3 = sin_16536Hz_0.005_ampli_128samples.wav INPUT4 = sin_22000Hz_0.005_ampli_128samples.wav -all: clean fft +BASENAME = output +FORMAT = csv +CSVOUT = $(BASENAME)1.$(FORMAT) +IMGOUT = $(SRC:.dsp=.png) -fft: $(SRC) $(INPUT1) $(INPUT2) $(INPUT3) $(INPUT4) - faustine -d $(SRC) -i $(INPUT1) -i $(INPUT2) -i $(INPUT3) -i $(INPUT4) +all: $(IMGOUT) + +$(IMGOUT): $(CSVOUT) + octave -qf img_write.m + +$(CSVOUT): $(SRC) $(INPUT1) $(INPUT2) $(INPUT3) $(INPUT4) + faustine -d $(SRC) -i $(INPUT1) -i $(INPUT2) -i $(INPUT3) -i $(INPUT4) --oformat $(FORMAT) --obasename $(BASENAME) clean:: rm -f gmon.out output*