aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2021-10-08 15:20:07 -0400
committerRob Austein <sra@hactrn.net>2021-10-08 15:20:07 -0400
commit8d61bd5e5c6131b027050ce2b9832aa7d6108bdd (patch)
treeedfa5d75d50dd05e186b1f1d772d92f9a2f2ac01 /Makefile
parentb2f9504254a3d4894d4f9a8b13f4cdbcb26fa395 (diff)
README
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..575f235
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+HTTP_HOST := $(shell hostname -f)
+HTTP_PORT := 8000
+
+all:
+ pelican --output website --settings pelicanconf.py --fatal errors content
+
+clean:
+ git clean -dfx
+
+server:
+ @echo http://${HTTP_HOST}:${HTTP_PORT}/
+ python3 -m http.server --directory website --bind ${HTTP_HOST} ${HTTP_PORT}
+
+check:
+ linkchecker website
+
+tags: TAGS
+
+TAGS: Makefile pelicanconf.py $(shell git ls-tree -r --name-only HEAD | egrep '[.]md$$')
+ etags $^
+
+.PHONY: all clean server check tags