]> Arthur Taft Gitweb - website.git/commitdiff
Add makefile to assist with building and deploying website
authorArthur Taft <[email protected]>
Mon, 24 Nov 2025 03:59:02 +0000 (20:59 -0700)
committerArthur Taft <[email protected]>
Mon, 24 Nov 2025 03:59:02 +0000 (20:59 -0700)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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/