From f66dbadf21c3509c94e355174be367ddfc20ac18 Mon Sep 17 00:00:00 2001 From: James Mills Date: Thu, 9 Dec 2021 12:47:48 +1000 Subject: Initial Commit with basic content, layout and simple.css --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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= +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 -- cgit 1.4.1-2-gfad0