aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 77d7875457f614521994642867f145d3d73044f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.POSIX:
.SUFFIXES:

outputs = gallery initialize.go public/mithril.js
all: $(outputs)

gallery: main.go initialize.go
	go build -tags "fts5" -gcflags="all=-N -l" -o $@
initialize.go: initialize.sql gen-initialize.sh
	./gen-initialize.sh initialize.sql > $@
public/mithril.js:
	curl -Lo $@ https://unpkg.com/mithril/mithril.js
clean:
	rm -f $(outputs)