about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2021-12-09 12:47:48 +1000
committerJames Mills <prologic@shortcircuit.net.au>2021-12-09 12:47:48 +1000
commitf66dbadf21c3509c94e355174be367ddfc20ac18 (patch)
tree810758a787b210b8cc117155aa1b2706b0c4620e /Makefile
parent582b9d78505bbd7bb9d623737687ece1585718a2 (diff)
downloadzs-template-f66dbadf21c3509c94e355174be367ddfc20ac18.tar.gz
Initial Commit with basic content, layout and simple.css
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..228a25c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,31 @@
+-include environ.inc
+.PHONY: deps dev build install image release test clean
+
+GOCMD=go
+REGISTRY=<registry>
+IMAGE=<image>
+
+all: build
+
+deps:
+	@$(GOCMD) install git.mills.io/prologic/zs@latest
+	@$(GOCMD) install git.mills.io/prologic/static@latest
+
+dev : DEBUG=1
+dev : build
+	@zs watch
+
+build:
+	@zs build
+
+ifeq ($(PUBLISH), 1)
+image:
+	@docker build -t $(REGISTRY)/$(IMAGE) .
+	@docker push $(REGISTRY)/$(IMAGE)
+else
+image:
+	@docker build -t $(REGISTRY)/$(IMAGE) .
+endif
+
+clean:
+	@git clean -f -d -X