aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 25cd904..36b12d7 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,4 +1,3 @@
-HERE := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
HTTP_HOST := $(shell hostname -f)
HTTP_PORT := 8000
@@ -6,6 +5,9 @@ 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}
@@ -13,4 +15,9 @@ server:
check:
linkchecker website
-.PHONY: all server check
+tags: TAGS
+
+TAGS: GNUmakefile pelicanconf.py $(shell git ls-tree -r --name-only HEAD | egrep '[.]md$$')
+ etags $^
+
+.PHONY: all clean server check tags