diff options
author | Aoi Koizumi <novaburst@kalli.st> | 2022-03-14 11:07:30 -0300 |
---|---|---|
committer | Aoi Koizumi <novaburst@kalli.st> | 2022-03-14 11:07:30 -0300 |
commit | 7f62a3be71042366744463b97ff21f22d341d39e (patch) | |
tree | c11d982210114f48381deec53ff4a1bb05dc1820 /Makefile | |
parent | f66dbadf21c3509c94e355174be367ddfc20ac18 (diff) | |
download | zs-template-7f62a3be71042366744463b97ff21f22d341d39e.tar.gz |
Removed docker crap, modified Makefile to be POSIX compliant
Signed-off-by: Aoi Koizumi <novaburst@kalli.st>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/Makefile b/Makefile index 228a25c..4256ff3 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,18 @@ --include environ.inc -.PHONY: deps dev build install image release test clean +all: generate -GOCMD=go -REGISTRY=<registry> -IMAGE=<image> -all: build +clean: + rm -rf .pub/* deps: - @$(GOCMD) install git.mills.io/prologic/zs@latest - @$(GOCMD) install git.mills.io/prologic/static@latest - -dev : DEBUG=1 -dev : build - @zs watch + go install git.mills.io/prologic/static + go install git.mills.io/prologic/zs -build: - @zs build +generate: + zs build -ifeq ($(PUBLISH), 1) -image: - @docker build -t $(REGISTRY)/$(IMAGE) . - @docker push $(REGISTRY)/$(IMAGE) -else -image: - @docker build -t $(REGISTRY)/$(IMAGE) . -endif +serve: + static -r .pub/ -clean: - @git clean -f -d -X +watch: + zs watch |