aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-12-08 05:42:24 +0100
committerPřemysl Eric Janouch <p@janouch.name>2023-12-08 05:42:24 +0100
commitbfbdf29ca3a60798c5267e88de5577a3faead9e9 (patch)
treec6acf5ee04749b5957901253aa0271b4279710e2 /Makefile
parent941022bdd6c69de93f38992205b02ed95c6e8eb0 (diff)
downloadgallery-bfbdf29ca3a60798c5267e88de5577a3faead9e9.tar.gz
gallery-bfbdf29ca3a60798c5267e88de5577a3faead9e9.tar.xz
gallery-bfbdf29ca3a60798c5267e88de5577a3faead9e9.zip
More basic stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9c5bc80..caefa2f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,13 @@
.POSIX:
.SUFFIXES:
-outputs = gallery public/mithril.js
+outputs = gallery initialize.go public/mithril.js
all: $(outputs)
-gallery: main.go
+gallery: main.go initialize.go
go build -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: