Add setup process

This commit is contained in:
Oystein Kristoffer Tveit 2020-05-26 23:05:29 +02:00
parent 385787e226
commit 2cb332339e
1 changed files with 14 additions and 6 deletions

View File

@ -8,14 +8,22 @@ main.pdf: main.tex jishoScrape/index.js title/titlepage.tex $(wildcard data/page
jishoScrape/index.js: $(wildcard jishoScrape/src/*.js) jishoScrape/index.js: $(wildcard jishoScrape/src/*.js)
data/pages/n%.tex: data/txt/n%.txt jishoScrape/index.js # data/pages/n%.tex: data/txt/n%.txt jishoScrape/index.js
node jishoScrape/index.js n% # node jishoScrape/index.js n%
data/tables/n%.tex: data/txt/n%.txt jishoScrape/index.js # data/tables/n%.tex: data/txt/n%.txt jishoScrape/index.js
node jishoScrape/index.js n% # node jishoScrape/index.js n%
.PHONY: clean main.pdf .PHONY: clean main.pdf folders
clean: clean:
rm data/pages/* rm data/pages/*
rm data/tables/* rm data/tables/*
rm main.aux main.log main.out main.toc main.synctex.gz rm main.aux main.log main.out main.toc main.synctex.gz
folders:
mkdir data/pages
mkdir data/tables
mkdir data/testing
cd jishoScrape
npm install
cd ..