Skip to content

Commit

Permalink
Add prune to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Mar 31, 2023
1 parent 3a52126 commit 1e3dcb0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
APP := pyml-validator

include devops/make/common.mk
include devops/make/common-kube.mk
include devops/make/common-go.mk
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

0 comments on commit 1e3dcb0

Please sign in to comment.