aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
blob: 25cd9043943ec55b029ad210d21911eadb10679e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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