Skip to content

Commit

Permalink
Fix make edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
cqcallaw committed Oct 26, 2020
1 parent 4542e92 commit da9a2b0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
FILES := config.toml $(shell find archetypes content layouts static themes)

public: $(FILES) static/resume.pdf
hugo --noTimes
# disable hugo modification times; a large binary static file makes the timestamp sync logic go haywire
hugo --noTimes --destination public
# manually touch the output folder so its mod time is correct
touch public
ipfs add -r public

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

clean:
rm -rf static/resume.pdf public

# ref: https://stackoverflow.com/a/27770136/577298
.NOTPARALLEL:

0 comments on commit da9a2b0

Please sign in to comment.