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