Skip to content

Commit

Permalink
preview Makefile target
Browse files Browse the repository at this point in the history
  • Loading branch information
cqcallaw committed Oct 26, 2020
1 parent da9a2b0 commit f264f17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,2 +1,3 @@
public
resume.pdf
resume.pdf
ipfs.log
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -7,6 +7,10 @@ public: $(FILES) static/resume.pdf
touch public
ipfs add -r public

preview:
$(eval CID = $(shell ipfs add --quiet -r public | tee ipfs.log | tail -n 1))
@echo Preview Link: http://dweb.link/ipfs/$(CID)

static/resume.pdf: static/resume.tex
cd static && pdflatex -aux-directory=/dev/null resume.tex && rm -f resume.aux resume.log

Expand Down

0 comments on commit f264f17

Please sign in to comment.