.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