You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
512 B
Makefile
33 lines
512 B
Makefile
src=$(shell ls *.jpeg)
|
|
pdf=$(src:%.jpeg=%.pdf)
|
|
|
|
|
|
pdf: $(pdf)
|
|
|
|
zapspaces:
|
|
rename "s/ /_/" *
|
|
rename "s/\.jpg/.jpeg/" *
|
|
|
|
# Scan.pdf: Scan.jpeg
|
|
# tesseract Scan.jpeg Scan -l eng pdf
|
|
|
|
%.pdf: %.jpeg
|
|
tesseract $*.jpeg $* -l eng pdf
|
|
|
|
# %.ppm: %.jpeg
|
|
# convert $*.jpeg $*.ppm
|
|
#
|
|
# %.un.jpeg: %.un.ppm
|
|
# convert $*.un.ppm $*.un.jpeg
|
|
#
|
|
# %.un.jpeg: %.jpeg
|
|
# convert $*.jpeg tmp.ppm
|
|
# unpaper tmp.ppm tmp2.ppm
|
|
# convert tmp2.ppm $*.un.jpeg
|
|
# rm tmp.ppm
|
|
# rm tmp2.ppm
|
|
#
|
|
# #debug vars
|
|
# print-%:
|
|
# @echo '$*=$($*)'
|