2020-05-24 23:12:29 +02:00
|
|
|
.DEFAULT_GOAL := main.pdf
|
|
|
|
|
2020-05-25 22:17:03 +02:00
|
|
|
main.pdf: main.tex jishoScrape/index.js title/titlepage.tex $(wildcard data/pages/*) $(wildcard data/tables/*)
|
2020-05-24 23:12:29 +02:00
|
|
|
for i in $$(seq 5 -1 1); do node jishoScrape/index.js n$$i; done
|
|
|
|
xelatex main.tex
|
|
|
|
|
|
|
|
#TODO: Make this modular, fix the index.js target.
|
|
|
|
|
2020-05-25 22:17:03 +02:00
|
|
|
jishoScrape/index.js: $(wildcard jishoScrape/src/*.js)
|
2020-05-24 23:12:29 +02:00
|
|
|
|
2020-05-25 22:17:03 +02:00
|
|
|
data/pages/n%.tex: data/txt/n%.txt jishoScrape/index.js
|
2020-05-24 23:12:29 +02:00
|
|
|
node jishoScrape/index.js n%
|
|
|
|
|
2020-05-25 22:17:03 +02:00
|
|
|
data/tables/n%.tex: data/txt/n%.txt jishoScrape/index.js
|
2020-05-24 23:12:29 +02:00
|
|
|
node jishoScrape/index.js n%
|
|
|
|
|
2020-05-25 22:17:03 +02:00
|
|
|
.PHONY: clean main.pdf
|
2020-05-24 23:12:29 +02:00
|
|
|
clean:
|
|
|
|
rm data/pages/*
|
|
|
|
rm data/tables/*
|
|
|
|
rm main.aux main.log main.out main.toc main.synctex.gz
|