]> CRI, Mines Paris - PSL - Faustine.git/blobdiff - examples/dilation/Makefile
Bug fixed for unix error "readlink /proc/self/fd/0" on MacOS.
[Faustine.git] / examples / dilation / Makefile
index 1958879eb173e667dedbd60462405def36bd60ab..ef567ac145c85709df654533be686d835a5b6932 100644 (file)
@@ -2,22 +2,26 @@ SRC = dilation.dsp
 IMGIN = letter_j.png
 LINES = 150
 
-BASENAME = output
-FORMAT = csv
+BASENAME = $(SRC:.dsp=)
+FORMAT = nst
+FILEOUT = $(BASENAME).$(FORMAT)
+CSVOUT = dilation.csv
 CSVIN = $(IMGIN:.png=.csv)
-CSVOUT = $(BASENAME)1.$(FORMAT)
 IMGOUT = $(SRC:.dsp=.png)
 
-all: $(IMGOUT)
+all: $(IMGOUT) #$(FILEOUT)
 
 $(IMGOUT): $(CSVOUT)
        octave -qf img_write.m
 
+$(FILEOUT): $(SRC) $(CSVIN)
+       faustine -f $(SRC) -l $(LINES) < $(CSVIN) 1> $@
+
 $(CSVOUT): $(SRC) $(CSVIN)
-       faustine -d $(SRC) -i $(CSVIN) -t $(LINES) --oformat $(FORMAT) --obasename $(BASENAME)
+       faustine -f $(SRC) -l $(LINES) < $(CSVIN) 1> $@
 
 $(CSVIN): $(IMGIN)
        octave -qf img_read.m
 
 clean::
-       rm -f gmon.out $(IMGOUT) $(BASENAME)*
+       rm -f gmon.out $(IMGOUT) $(CSVOUT)