blackwolf/Makefile

21 lines
443 B
Makefile
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.PHONY: all render update git
# 默认目标:执行所有操作
all: render update git
# 目标:渲染 Quarto 文件
render:
Rscript -e "quarto::quarto_render()"
hugo -d blackwolf
# 目标:更新网站内容
update:
rsync -crvP --progress --delete --exclude='.DS_Store' --exclude='.Rproj.user/' blackwolf/* dwuser@drwater.net:/home/www/blackwolf/
# 目标Git 提交和推送
git:
git add .
git commit -m "compile"
git push