aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-12-08 02:16:04 +0100
committerPřemysl Eric Janouch <p@janouch.name>2023-12-29 15:02:28 +0100
commit054078908a1e4c7429ea0f5a3a0605addfccc46c (patch)
tree7a6dd29cd4381bd655fa78f5866f25c552d05072 /Makefile
downloadgallery-054078908a1e4c7429ea0f5a3a0605addfccc46c.tar.gz
gallery-054078908a1e4c7429ea0f5a3a0605addfccc46c.tar.xz
gallery-054078908a1e4c7429ea0f5a3a0605addfccc46c.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fe30c13
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+.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)