Bug fixed for unix error "readlink /proc/self/fd/0" on MacOS.
[Faustine.git] / examples / erosion / Makefile
1 SRC = erosion.dsp
2 IMGIN = letter_j.png
3 LINES = 150
4
5 BASENAME = output
6 FORMAT = csv
7 CSVIN = $(IMGIN:.png=.csv)
8 CSVOUT = $(BASENAME)1.$(FORMAT)
9 IMGOUT = $(SRC:.dsp=.png)
10
11 all: $(IMGOUT)
12
13 $(IMGOUT): $(CSVOUT)
14 octave -qf img_write.m
15
16 $(CSVOUT): $(SRC) $(CSVIN)
17 faustine -f $(SRC) -i $(CSVIN) -l $(LINES) > $@
18
19 $(CSVIN): $(IMGIN)
20 octave -qf img_read.m
21
22 clean::
23 rm -f gmon.out $(IMGOUT) $(BASENAME)*