-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 721 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.PHONY: build website cv watch clean deploy
build: cv website
cv: cv.pdf
mv cv.pdf static
cv.pdf: cv.tex
latexmk -pdf -lualatex -interaction=errorstopmode cv.tex
website:
hugo --gc --minify
gh-pages:
git clone --depth=1 --single-branch --branch gh-pages https://github.com/AppleGamer22/applegamer22.github.io.git gh-pages
deploy: website gh-pages
cd gh-pages;\
git rm -r --ignore-unmatch *;\
cp -r ../public/* .;\
git add --all;\
git commit -m "deploy: $(shell git rev-parse HEAD)";\
git push origin gh-pages
watch:
hugo server --noHTTPCache --buildDrafts --buildFuture
clean:
hugo mod clean --all
rm -rf gh-pages public assets/jsconfig.json hugo_stats.json .hugo_build.lock cv.synctex.gz
latexmk -C