From 5889487670bfb940ccd9dbb930a01413d6e16414 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Tue, 10 Oct 2023 02:18:57 +0000 Subject: [PATCH] Makefile cleanup --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 36e2b1e..75e9c5b 100644 --- a/Makefile +++ b/Makefile @@ -5,38 +5,38 @@ RSYNC_OPTS=--recursive --links --compress --delete --chown=$(TARGET_USER):$(TARG .PHONY: clean clean: rm -rf public resources themes - rm -rf scripts/cv.aux scripts/cv.log scripts/cv.out scripts/cv.tex + rm -rf scripts/cv.aux scripts/cv.log scripts/cv.out rm -rf content/posts/*.bak -scripts/cv.tex: +scripts/cv.tex: content/cv.md sed content/cv.md \ -e 's/南山大学/\\begin{CJK}{UTF8}{min}&\\end{CJK}/' \ | scripts/cv_tex.awk > scripts/cv.tex -static/files: +static/files/dominic-ricottone.pdf: scripts/cv.tex mkdir -p static/files - -static/files/dominic-ricottone.pdf: static/files content/cv.md scripts/cv.tex cd scripts && pdflatex cv.tex - pwd mv scripts/cv.pdf static/files/dominic-ricottone.pdf - rm -rf scripts/cv.aux scripts/cv.log scripts/cv.out scripts/cv.tex + rm -rf scripts/cv.aux scripts/cv.log scripts/cv.out -static/files/dominic-ricottone.html: static/files content/cv.md +static/files/dominic-ricottone.html: content/cv.md + mkdir -p static/files cat content/cv.md \ | scripts/cv_html.awk > static/files/dominic-ricottone.html +.PHONY: layouts/partials/bsky.html layouts/partials/bsky.html: scripts/bsky.bash > layouts/partials/bsky.html +.PHONY: layouts/partials/lastfm.html layouts/partials/lastfm.html: scripts/lastfm.sh > layouts/partials/lastfm.html +.PHONY: layouts/partials/openring.html layouts/partials/openring.html: scripts/openring.sh > layouts/partials/openring.html PREGEN_HTML=static/files/dominic-ricottone.pdf static/files/dominic-ricottone.html layouts/partials/bsky.html layouts/partials/lastfm.html layouts/partials/openring.html -.PHONY: $(PREGEN_HTML) .PHONY: dev dev: $(PREGEN_HTML) -- 2.43.4