diff options
author | metamuffin <metamuffin@disroot.org> | 2025-10-06 21:22:02 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-10-06 23:03:40 +0200 |
commit | a31b3f21d92928ff2c4960c95f42b07abdb0ba02 (patch) | |
tree | 5dfe453e92407daf63d192765a417dd894e1d388 /book/GNUmakefile | |
parent | d0bc8f954789a26817997d8349487514df1dad7e (diff) | |
download | hurrycurry-a31b3f21d92928ff2c4960c95f42b07abdb0ba02.tar hurrycurry-a31b3f21d92928ff2c4960c95f42b07abdb0ba02.tar.bz2 hurrycurry-a31b3f21d92928ff2c4960c95f42b07abdb0ba02.tar.zst |
Remove old book code :(
Diffstat (limited to 'book/GNUmakefile')
-rw-r--r-- | book/GNUmakefile | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/book/GNUmakefile b/book/GNUmakefile deleted file mode 100644 index 1bfeac51..00000000 --- a/book/GNUmakefile +++ /dev/null @@ -1,53 +0,0 @@ - -noop = -space = $(noop) $(noop) -comma = , -langs = $(patsubst locale/%.ini,%,$(wildcard locale/*.ini)) - -s_pages = 01,02,03,04,05,06,07,08,09,10,11 -s_langs = $(subst $(space),$(comma),$(langs)) -png_pages = $(shell echo out/book_{$(s_pages)}.{$(s_langs)}.png) -svg_pages = $(shell echo out/book_{$(s_pages)}.{$(s_langs)}.svg) -webp_pages = $(shell echo out/book_{$(s_pages)}.{$(s_langs)}.webp) -pdfs = $(shell echo out/book.{$(s_langs)}.pdf) - -MINIMAL = book.json -MOST = book.json $(pdfs) -ALL = book.json out/book.webp.tar.zst out/book.svg.tar.zst \ - $(pdfs) $(png_pages) $(webp_pages) $(svg_pages) - -JSR = deno run - -.PHONY: all -minimal: $(MINIMAL) -most: $(MOST) -all: $(ALL) - -out: - @mkdir -p out - -book.json: book.js - { pushd .. >/dev/null; cargo $(CARGOFLAGS) run --release --bin hurrycurry-tools -- book; popd >/dev/null; } > $@~ && cp $@~ $@ - -$(wordlist 2,99,$(png_pages)): $(word 1,$(png_pages)) -out/book_01.%.png: book.typ book.json locale/%.ini out - typst compile --font-path assets/fonts --input lang=$(subst out/,,$(*)) $< out/book_\{n\}.$(subst out/,,$(*)).png -$(wordlist 2,99,$(svg_pages)): $(word 1,$(svg_pages)) -out/book_01.%.svg: book.typ book.json locale/%.ini out - typst compile --font-path assets/fonts --input lang=$(subst out/,,$(*)) $< out/book_\{n\}.$(subst out/,,$(*)).svg -out/book.%.pdf: book.typ book.json locale/%.ini out - typst compile --font-path assets/fonts --input lang=$(subst out/,,$(*)) $< $@ - -out/%.webp: out/%.png - ffmpeg -i $< -y $@ - -out/book.svg.tar.zst: $(svg_pages) - tar -cf $@ $^ -out/book.webp.tar.zst: $(webp_pages) - tar -cf $@ $^ - -.PHONY: clean -clean: - rm -rf out - rm -f book.json - |