blob: 852c27242ff4535916d193f25719bf12dc9d7736 (
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 watch
MAKEFLAGS := -j$(shell nproc)
export PATH := $(PATH):./bin
export LANG := en_US.UTF-8
srcs := $(shell find src -type f -name 'index.gsp')
dsts := $(srcs:%.gsp=%.html)
all: $(dsts)
%.html: %.gsp
m4 -P -Iinclude m4/* $< | gsp >$@
check:
find src -name '*.gsp' -exec \
aspell --home-dir=./ --ignore-case check {} \;
clean:
find . -name '*.html' -delete
serve:
darkhttpd src --daemon
watch:
git ls-files --others | entr -n $(MAKE)
|