From f72b1e99355e12a6c925e8fc71ee2fd04a781207 Mon Sep 17 00:00:00 2001 From: Georgi Matev Date: Tue, 6 Sep 2022 13:59:43 -0400 Subject: [PATCH] Makefile should pick up any changes in /src subfolder not just first level (#777) ## Description Globs not picking up changes to anything beyond first level of source files and not rebuilding on changes to mdgen.go for example. Switch to `find` which should also be more portable. ## Type of change Please check the type of change your PR introduces: - [ ] :sunflower: Feature - [x] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Test - [ ] :hamster: Trivial/Minor ## Issue(s) ## Test Plan - [x] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- docs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Makefile b/docs/Makefile index eb03fe4c6..dd666f4fd 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -52,7 +52,7 @@ genclidocs: ${MDGEN_BINARY} golang:1.18 \ --cli-folder ${CLI_DOCS_CONTAINER} -${MDGEN_BINARY}: ${CORSO_REPO}/src/** ${CORSO_REPO}/src/**/*.go +${MDGEN_BINARY}: $(shell find ../src -type f -name *.go) $(shell find ../src -type d ) @echo 'Re-building Corso CLI docs auto-gen tooling...' docker run --rm -it \ -v ${CORSO_REPO}:${CORSO_REPO_CONTAINER} -v ${CORSO_BUILD_DIR}:${CORSO_BUILD_DIR} \