-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (27 loc) · 1.51 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
all: clean build
build:
python -m markdown markdown_resume.md > ./html/markdown_resume.html
python build_html.py ./html/pre_html.html ./html/markdown_resume.html ./html/post_html.html
md2pdf markdown_resume.md --theme="./css/pdf.css" --output resume_kaleb_hermes.pdf
# Copy the pervious version of index.html and resume.pdf to a previous folder, in case something goes wrong.
# Upload newly built resume to webserver.
ssh [email protected] "cp /var/www/html/index.html /var/www/html/previous/index.html"
ssh [email protected] "cp /var/www/html/resume_kaleb_hermes.pdf /var/www/html/previous/resume_kaleb_hermes.pdf"
scp resume.html [email protected]:/var/www/html/index.html
scp resume_kaleb_hermes.pdf [email protected]:/var/www/html/resume_kaleb_hermes.pdf
clean:
-cp resume.html ./html/revisions/resume.backup.html
-cp resume_kaleb_hermes.pdf ./html/revisions/resume_kaleb_hermes.pdf
-cp ./html/markdown_resume.html ./html/revisions/markdown_resume.backup.html
-rm -rf resume.html
-rm -rf resume_kaleb_hermes.pdf
-rm -rf ./html/markdown_resume.html
buildLocal:
python -m markdown markdown_resume.md > ./html/markdown_resume.html
python build_html.py ./html/pre_html.html ./html/markdown_resume.html ./html/post_html.html
md2pdf markdown_resume.md --theme="./css/pdf.css" --output resume_kaleb_hermes.pdf
resumePDF:
md2pdf custom_resume/markdown_resume.md --theme="./css/pdf.css" --output custom_resume/resume_kaleb_hermes.pdf
setup:
pip3 install -r requirements.txt --ignore-installed six
lint: