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-06-10 16:48:24 +02:00
|
|
|
for i in $$(seq 7); do node jishoScrape/index.js grade$$i; done
|
2020-05-24 23:12:29 +02:00
|
|
|
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-26 23:05:29 +02:00
|
|
|
# data/pages/n%.tex: data/txt/n%.txt jishoScrape/index.js
|
|
|
|
# node jishoScrape/index.js n%
|
2020-05-24 23:12:29 +02:00
|
|
|
|
2020-05-26 23:05:29 +02:00
|
|
|
# data/tables/n%.tex: data/txt/n%.txt jishoScrape/index.js
|
|
|
|
# node jishoScrape/index.js n%
|
2020-05-24 23:12:29 +02:00
|
|
|
|
2020-05-26 23:05:29 +02:00
|
|
|
.PHONY: clean main.pdf folders
|
2020-05-24 23:12:29 +02:00
|
|
|
clean:
|
|
|
|
rm data/pages/*
|
|
|
|
rm data/tables/*
|
2020-05-26 23:05:29 +02:00
|
|
|
rm main.aux main.log main.out main.toc main.synctex.gz
|
|
|
|
|
|
|
|
folders:
|
|
|
|
mkdir data/pages
|
|
|
|
mkdir data/tables
|
|
|
|
mkdir data/testing
|
2020-05-27 17:28:01 +02:00
|
|
|
mkdir data/jisho
|
2020-05-26 23:05:29 +02:00
|
|
|
cd jishoScrape
|
|
|
|
npm install
|
|
|
|
cd ..
|