diff options
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile index 94b079b..b5cf544 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -7,6 +7,8 @@ SOURCE_TRAC_ATTACHMENTS := bikeshed.cryptech.is:/home/trac/files/attachments REPO_HOST := bikeshed.cryptech.is REPO_PATH := /usr/local/git/repositories +HTTP_HOST := $(shell hostname -f) +HTTP_PORT := 8000 all: trac-to-pelican-home.md tools/extract.py --source-url ${SOURCE_URL} @@ -31,11 +33,11 @@ clean: distclean: clean rm -rf trac.db attachments -webfsd: - @echo http://$$(hostname):8000/ - webfsd -r pelican/website -4 -L - -F -f index.html +server: + @echo http://${HTTP_HOST}:${HTTP_PORT}/ + python3 -m http.server --directory pelican/website --bind ${HTTP_HOST} ${HTTP_PORT} check: linkchecker pelican/website -.PHONY: all clean fetch distclean webfsd check +.PHONY: all clean fetch distclean server check |