]> Arthur Taft Gitweb - website.git/blob - Makefile
update make help
[website.git] / Makefile
1 # Manage website
2 #
3 # Copyright (c) 2025 Arthur Taft. All Rights Reserved.
4
5 SHELL := bash
6
7 .PHONY: help 
8 help:
9         @echo 'make build               default target, builds site into ./site'
10         @echo 'make serve               serve site locally using simple python webserver'
11         @echo 'make deploy              deploy site'
12         @echo 'make test                build and serve site'
13         @echo 'make all                 build and deploy site'
14         @echo 'make clean               cleans'
15
16 .PHONY: build
17 build:
18         mkdir -p site site/about site/blog site/contact site/resume site/static
19         echo -n > site/static/index.html
20         cat static/LiberationMono-Regular.woff2 > site/static/LiberationMono-Regular.woff2
21         cat static/about.html > site/about/index.html
22         cat static/blog.html > site/blog/index.html
23         cat static/contact.html > site/contact/index.html
24         cat static/in-progress.gif > site/static/in-progress.gif
25         cat static/index.html > site/index.html
26         cat static/resume-styles.css > site/static/resume-styles.css
27         cat static/resume.html > site/resume/index.html
28         cat static/shell-icon.ico > site/favicon.ico
29         cat static/styles.css > site/static/styles.css
30
31 .PHONY: all
32 all: build deploy
33
34 .PHONY: test
35 test: build serve
36
37 .PHONY: serve
38 serve:
39         python -m http.server -d site
40
41 .PHONY: clean 
42 clean:
43         rm -rf site
44
45 .PHONY: deploy
46 deploy:
47         rsync -avh --delete ./site/ /var/www/arthurtaft.net/