diff --git a/Makefile b/Makefile index bc7c1ab..6902a72 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,18 @@ APP := pyml-validator include devops/make/common.mk -include devops/make/common-kube.mk -include devops/make/common-go.mk \ No newline at end of file +include devops/make/common-go.mk + +# extend the update-makefiles task to remove files we don't need +update-makefiles:: + make prune-common-make + +# strip out everything from common-makefiles that we don't want. +prune-common-make: + @find devops/make -type f \ + -not -name common.mk \ + -not -name common-go.mk \ + -delete + @find devops/make -empty -delete + @git add devops/make + @git commit -C HEAD --amend \ No newline at end of file