From 187887fb3fc6dcfec91549a07e99abfd096a1217 Mon Sep 17 00:00:00 2001 From: Arthur Taft Date: Sun, 23 Nov 2025 20:59:02 -0700 Subject: [PATCH 1/1] Add makefile to assist with building and deploying website --- Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0e12644 --- /dev/null +++ b/Makefile @@ -0,0 +1,43 @@ +# Manage website +# +# Copyright (c) 2025 Arthur Taft. All Rights Reserved. + +SHELL := bash + +.PHONY: help +help: + @echo 'make build default target, builds site into ./site' + @echo 'make serve serve site locally using simple python webserver' + @echo 'make deploy deploy site' + @echo 'make all build and deploy site' + @echo 'make clean cleans' + +.PHONY: build +build: + mkdir -p site site/about site/blog site/contact site/resume site/static + echo -n > site/static/index.html + cat static/LiberationMono-Regular.woff2 > site/static/LiberationMono-Regular.woff2 + cat static/about.html > site/about/index.html + cat static/blog.html > site/blog/index.html + cat static/contact.html > site/contact/index.html + cat static/in-progress.gif > site/static/in-progress.gif + cat static/index.html > site/index.html + cat static/resume-styles.css > site/static/resume-styles.css + cat static/resume.html > site/resume/index.html + cat static/shell-icon.ico > site/favicon.ico + cat static/styles.css > site/static/styles.css + +.PHONY: all +all: build deploy + +.PHONY: serve +serve: + python -m http.server -d site + +.PHONY: clean +clean: + rm -rf site + +.PHONY: deploy +deploy: + rsync -avh --delete ./site/ web:/var/www/arthurtaft.net/ -- 2.51.2