diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -3,9 +3,9 @@ GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/\//_/g') IMAGE_TAG := $(PROJECT_NAME):$(GIT_BRANCH) AUTHZD_BIN := bin/authzd SPARKLED_BIN := bin/sparkled -ZED_CMD = go tool godotenv -f .env.local,.env go tool zed --insecure +ZED := bin/zed -.PHONY: clean setup build test run +.PHONY: clean setup build test run db-setup $(AUTHZD_BIN): $(shell find . -name "*.go" 2>/dev/null) go.sum @go build -o $(AUTHZD_BIN) ./cmd/authzd/main.go @@ -52,8 +52,8 @@ run-image: clean build-image lint: @go tool yamlfmt --lint -exclude vendor . - @$(ZED_CMD) validate etc/authzd/*.zed - @$(ZED_CMD) validate etc/authzd/*.yaml + @$(ZED) validate etc/authzd/*.zed + @$(ZED) validate etc/authzd/*.yaml tidy: @go get -u ./... @@ -62,10 +62,9 @@ tidy: @go tool yamlfmt -exclude vendor . db-schema-load: - @$(ZED_CMD) schema write etc/authzd/schema.zed - -db-schema: - @$(ZED_CMD) schema read + @$(ZED) schema write etc/authzd/schema.zed db-seed: - @$(ZED_CMD) import etc/authzd/relationships.yaml + @$(ZED) import etc/authzd/relationships.yaml + +db-setup: db-schema-load db-seed |
