-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
56 lines (41 loc) · 1.25 KB
/
makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Netlify functionality
netlify: buildjsnetlify buildcljsnetlify
cp -r swap_in/* dist
cp currentcv.pdf dist/gowdercv.pdf
cp currentcv.tex dist/currentcv.tex
buildcljsnetlify:
cd apps/apps && lein package
cp -r apps/apps/public/. swap_in/apps
buildjsnetlify: buildcvnetlify
npm run build
buildcvnetlify: templatecvnetlify
cp -R cvtex/. .
cp -R texbuild_for_netlify/. .
bash build.sh currentcv.tex
cp currentcv.pdf src/assets/pdf/gowdercv.pdf
templatecvnetlify: yaml2json updatedate
node ./buildscripts/template-public-cv.js
# Local functionality
local: cvbuild
npm run build
dev: cvbuild
npm run dev
yaml2json:
node ./buildscripts/yaml-to-json.js
updatedate: yaml2json
node ./buildscripts/update-last-updated.js
cvbuild: updatedate yaml2json
node ./buildscripts/template-public-cv.js
cp -r cvtex temp_cv_build
cp currentcv.tex temp_cv_build
cd temp_cv_build && xelatex currentcv.tex
cp temp_cv_build/currentcv.pdf .
rm -rf temp_cv_build
buildpubliccv: updatedate yaml2json
node ./buildscripts/compile-public-cv.js
buildprivatecv: updatedate yaml2json
node ./buildscripts/compile-private-cv.js
fancy_local: yaml2json updatedate buildpubliccv buildprivatecv
npm run build
fancy_dev: yaml2json updatedate buildpubliccv buildprivatecv
npm run dev