Commit 6ee6cc84 authored by Tim Hockin's avatar Tim Hockin

Add rules for all cmd/* subdirs

This is sort of gravy. There's no good way to do this for arbitrary directories because of the way Make works (we'd have to declare them all PHONY). If people hate using make directly we could wrap it in another level of indirection, but I didn't yet. E.g. build/make-all.sh -> make -> make-rules/all.sh -> go install This would insulate people from 'make' atthe cost of custom build tools. I prefer being able to say 'make' and having it just work.
parent f0ef7268
...@@ -242,6 +242,14 @@ release-skip-tests quick-release: generated_files ...@@ -242,6 +242,14 @@ release-skip-tests quick-release: generated_files
cross: cross:
hack/make-rules/cross.sh hack/make-rules/cross.sh
# Add rules for all directories in cmd/
#
# Example:
# make kubectl kube-proxy
.PHONY: $(notdir $(abspath $(wildcard cmd/*/)))
$(notdir $(abspath $(wildcard cmd/*/))): generated_files
hack/make-rules/build.sh cmd/$@
# #
# Code-generation logic. # Code-generation logic.
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment