From fe38310d9718e3bfc151b517600742030d54a4d6 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Wed, 27 Dec 2023 12:37:03 +0100 Subject: [PATCH] makefile: don't delete the go api client when not regenerating it Signed-off-by: Marc 'risson' Schmitt --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a91ca7464..cba39f96c 100644 --- a/Makefile +++ b/Makefile @@ -114,12 +114,16 @@ gen-diff: ## (Release) generate the changelog diff between the current schema a sed -i 's/}/}/g' diff.md npx prettier --write diff.md -gen-clean: - rm -rf gen-go-api/ +gen-clean-ts: ## Remove generated API client for Typescript rm -rf gen-ts-api/ rm -rf web/node_modules/@goauthentik/api/ -gen-client-ts: ## Build and install the authentik API for Typescript into the authentik UI Application +gen-clean-go: ## Remove generated API client for Go + rm -rf gen-go-api/ + +gen-clean: gen-clean-ts gen-clean-go ## Remove generated API clients + +gen-client-ts: gen-clean-ts ## Build and install the authentik API for Typescript into the authentik UI Application docker run \ --rm -v ${PWD}:/local \ --user ${UID}:${GID} \ @@ -135,7 +139,7 @@ gen-client-ts: ## Build and install the authentik API for Typescript into the a cd gen-ts-api && npm i \cp -rfv gen-ts-api/* web/node_modules/@goauthentik/api -gen-client-go: ## Build and install the authentik API for Golang +gen-client-go: gen-clean-go ## Build and install the authentik API for Golang mkdir -p ./gen-go-api ./gen-go-api/templates wget https://raw.githubusercontent.com/goauthentik/client-go/main/config.yaml -O ./gen-go-api/config.yaml wget https://raw.githubusercontent.com/goauthentik/client-go/main/templates/README.mustache -O ./gen-go-api/templates/README.mustache @@ -155,7 +159,7 @@ gen-client-go: ## Build and install the authentik API for Golang gen-dev-config: ## Generate a local development config file python -m scripts.generate_config -gen: gen-build gen-clean gen-client-ts +gen: gen-build gen-client-ts ######################### ## Web