gallery/Makefile

15 lines
347 B
Makefile
Raw Permalink Normal View History

2023-12-08 02:16:04 +01:00
.POSIX:
.SUFFIXES:
outputs = gallery initialize.go public/mithril.js
all: $(outputs)
gallery: main.go initialize.go
go build -tags "" -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)