HERE := $(dir $(abspath $(lastword $(MAKEFILE_LIST)))) HTTP_HOST := $(shell hostname -f) HTTP_PORT := 8000 all: pelican --output website --settings pelicanconf.py --fatal errors content server: @echo http://${HTTP_HOST}:${HTTP_PORT}/ python3 -m http.server --directory website --bind ${HTTP_HOST} ${HTTP_PORT} check: linkchecker website .PHONY: all server check