Skip to content

Commit

Permalink
Change-sensitive regen
Browse files Browse the repository at this point in the history
  • Loading branch information
cqcallaw committed Oct 25, 2020
1 parent e3af938 commit 86a16ed
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Makefile
@@ -1,16 +1,22 @@
FILES := config.toml $(shell find archetypes content layouts static themes) static/resume.pdf

all: cweb dweb

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

cweb: config.toml static/resume.pdf
cweb: $(FILES)
hugo -d cweb
# correct modification time;
# for some reason Hugo output sets the modification time to Dec 13 1901
find cweb -exec touch {} +

dweb: config.toml static/resume.pdf
dweb: $(FILES)
hugo -d dweb --baseURL '/'
# correct modification time;
# for some reason Hugo output sets the modification time to Dec 13 1901
find dweb -exec touch {} +
ipfs add -r dweb

clean:
rm -rf static/resume.pdf public cweb dweb

FORCE: ;

0 comments on commit 86a16ed

Please sign in to comment.