aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2025-07-01 23:03:48 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2025-07-01 23:03:48 +0200
commit0ea34fda01d27e3b173fd13d880e3c794c09e117 (patch)
tree2fec26a805c00b831440665424ab9b5caee5c3ef /Makefile
parent348a41d890abd7e82103e7cc2baea508fb35de67 (diff)
downloadconstance-ring-0ea34fda01d27e3b173fd13d880e3c794c09e117.tar.gz
constance-ring-0ea34fda01d27e3b173fd13d880e3c794c09e117.tar.bz2
constance-ring-0ea34fda01d27e3b173fd13d880e3c794c09e117.tar.xz
constance-ring-0ea34fda01d27e3b173fd13d880e3c794c09e117.zip
wip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 16 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 31cfe6c..39a4a75 100644
--- a/Makefile
+++ b/Makefile
@@ -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