X-Git-Url: https://gitweb.arthurtaft.net/website.git/blobdiff_plain/f85ff055aa735d113a8066ff456a2183fe7eaeb1..187887fb3fc6dcfec91549a07e99abfd096a1217:/Makefile?ds=sidebyside 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/