Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: ; |