Fixed makefile recipe

master
Alice 7 years ago
parent e4e26a78f1
commit 62c07bd59b

@ -92,8 +92,8 @@ output/carlandre.txt: ocr/output.txt ## Alice: Creates visual poetry out of a te
cat $< | python3 src/carlandre.py > $(@) cat $< | python3 src/carlandre.py > $(@)
# cat $(@) > /dev/usb/lp0 # cat $(@) > /dev/usb/lp0
output/overunder.txt: ocr/output.txt ## Alice: An interpreted language that translate simple weaving instructions and creates a weaving pattern on text. Dependencies: output/overunder.txt: ocr/output.txt ## Alice: An interpreted language that translate simple weaving instructions and creates a weaving pattern on text.
cat $< | python3 src/overunder.py > $(@) python3 src/overunder.py
visualization: $(images) $(tmpfile) ##Creates data visualization from images/*.jpg. Dependencies: mplayer visualization: $(images) $(tmpfile) ##Creates data visualization from images/*.jpg. Dependencies: mplayer

@ -43,7 +43,7 @@ def eval(cmds):
last_index = 0 last_index = 0
elif cmd[0] == 'load': elif cmd[0] == 'load':
contents = open('output.txt').read() contents = open('ocr/output.txt').read()
text = textwrap.wrap(contents, 40, break_long_words=True) text = textwrap.wrap(contents, 40, break_long_words=True)
print('\n'.join(text)) print('\n'.join(text))
line_number = 0 line_number = 0

Loading…
Cancel
Save