blob: 834f24c4316364642012eaa52e4a39067a2b1e3a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
.PHONY: check clean serve
MAKEFLAGS := -j$(shell nproc)
export PATH := $(PATH):./bin
export LANG = en_US.UTF-8
PORT = 8080
reqs := $(shell find include m4 -type f)
srcs := $(shell find src -type f -name 'index.gsp')
dsts := $(srcs:%.gsp=%.html)
all: $(dsts)
%.html: %.gsp $(reqs)
m4 -P -Iinclude m4/__base.m4 m4/[a-z]* $< | gsp >$@
check:
find src -name '*.gsp' -exec \
aspell --personal=.wordlist --ignore-case check {} \;
clean:
find . -name '*.html' -delete
serve:
darkhttpd src --daemon --port $(PORT)
|