From bbb74be6a29708a8c50764e33fd759ab61a9f623 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 2 Jul 2025 21:56:31 +0200 Subject: wip --- Makefile | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index abc5508..414c48e 100644 --- a/Makefile +++ b/Makefile @@ -30,43 +30,44 @@ txt/page-%.txt:image/page-%.jpg stage-1.txt: $(TXTs) cat txt/page-{014..328}.txt > $@ - # pdftotext -layout $< $@ stage-2.txt: stage-1.txt - @echo $@ - # tr '\f' '\n' < $< > $@ + @echo '#' $@ + @# tr '\f' '\n' < $< > $@ @cp $< $@ stage-3.txt: stage-2.txt convert.awk - @echo $@ + @echo '#' $@ @awk -f convert.awk $< > $@.tmp @mv $@.tmp $@ stage-4.txt: stage-3.txt Makefile - @echo $@ + @echo '#' $@ @uniq $< > $@.tmp @mv $@.tmp $@ stage-5.txt: stage-4.txt convert2.awk - @echo $@ - @awk -f convert2.awk $< > $@.tmp - @mv $@.tmp $@ + @echo '#' $@ + awk -f convert2.awk $< > $@.tmp + mv $@.tmp $@ stage-6.md: stage-5.txt Makefile - @echo $@ + @echo '#' $@ @pandoc --from markdown -o $@.tmp.md $< @mv $@.tmp.md $@ constance-ring.md: header.md stage-6.md - @echo $@ + @echo '#' $@ @cat $^ > $@.tmp @mv $@.tmp $@ constance-ring.epub: constance-ring.md - @echo $@ + @echo '#' $@ @pandoc -o $@ $< .PHONY: clean clean: if [ -r page-index.txt ]; then cat page-index.txt | xargs rm; rm page-index.txt; fi @rm -f stage-*.txt + +$(V).SILENT: -- cgit v1.2.3