diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 16 insertions, 6 deletions
@@ -1,14 +1,24 @@ all: constance-ring.epub -2025-07-01T2031_NB_generated.txt: 2025-07-01T2031_NB_generated.pdf +stage-1.txt: 2025-07-01T2031_NB_generated.pdf pdftotext $< $@ -book.md: 2025-07-01T2031_NB_generated.txt convert.awk - awk -f convert.awk < $< > $@.tmp - mv $@.tmp $@ +stage-2.txt: stage-1.txt + @echo $@ + tr '\f' '\n' < $< > $@ + +stage-3.txt: stage-2.txt convert.awk + @echo $@ + awk -f convert.awk $< > $@ -constance-ring.md: header.md book.md - cat $< > $@ +constance-ring.md: header.md stage-3.txt + @echo $@ + cat $^ > $@.tmp + mv $@.tmp $@ constance-ring.epub: constance-ring.md pandoc -o $@ $< + +.PHONY: clean +clean: + @rm -f stage-*.txt |
