LICENSE, MINES
[Faustine.git] / examples / dilation / Makefile
1 SRC = dilation.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 -d $(SRC) -i $(CSVIN) -t $(LINES) --oformat $(FORMAT) --obasename $(BASENAME)
18
19 $(CSVIN): $(IMGIN)
20 octave -qf img_read.m
21
22 clean::
23 rm -f gmon.out $(IMGOUT) $(BASENAME)*