From 35a07599ff7aeed908d0e72bd1a32f7efa84144e Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Thu, 25 Jan 2024 14:18:40 +0100 Subject: [PATCH] makefile: updating `prepare` to remove only directories Removing the entire directory removes the `go.mod` and README etc, so needs updating --- GNUmakefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 430da0c4a32..eaa8b91830e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -16,11 +16,12 @@ imports: tools prepare: @echo "==> Preparing the repository to be updated.." @echo "==> 1. Resource Manager - Removing all existing generated files" - rm -rf ./resource-manager/ + find ./resource-manager/ -maxdepth 1 -mindepth 1 -type d -exec rm -rf '{}' \; @echo "==> 2. Resource Manager - Re-creating the directory structure in preparation" mkdir -p ./resource-manager/ + # TODO: enable Microsoft Graph support prior to enabling generation of that SDK #@echo "==> 3. Microsoft Graph - Removing all existing generated files" - #rm -rf ./microsoft-graph/ + #find ./microsoft-graph/ -maxdepth 1 -mindepth 1 -type d -exec rm -rf '{}' \; #@echo "==> 4. Microsoft Graph - Re-creating the directory structure in preparation" #mkdir -p ./microsoft-graph/