RFC: Add a Makefile

Maybe I am alone in my distaste for the go way fo building.  It's very opaque
and opinionated.  I do not think it is reasonable to demand a user put code in
a particular organization to use it or to require environment variable
fiddling (really?  in 2014?).  I also don't think hand-rolled scripts give a
pleasant experience.

This simple Makefile obsoletes two scripts and a config-script.  It should
provide a pretty-much identical experience.

make - build all binaries
make clean - clean up
make test - run tests
make kubelet - just build kubelet
make test WHAT=pkg/kubelet - test pkg/kubelet/*
Agree with @lavalamp comments (except part about him being curmudgeon.)
On Aug 25, 2014 6:24 AM, "Clayton Coleman" <notifications@github.com> wrote:

> In Makefile:
>
> > +# number, so we skip this check on Travis.  It's unnecessary there anyway.
> > +check_go_ver:
> > +	@if [[ "$${TRAVIS:-}" != "true" ]]; then \
> > +	  GO_VERSION=($$($(GO) version)); \
> > +	  if [[ "$${GO_VERSION[2]}" < "go1.2" ]]; then \
> > +	    echo "Detected go version: $${GO_VERSION[*]}." >&2; \
> > +	    echo "Kubernetes requires go version 1.2 or greater." >&2; \
> > +	    false; \
> > +	  fi; \
> > +	fi
> > +
> > +$(K8S_SRC_DIR):
> > +	@mkdir -p $$(dirname $@)
> > +	@ln -snf ../../../../.. $@
> > +
> > +VERFILE = pkg/version/autogenerated.go
>
> Did that in #1014
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1014>
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/kubernetes/pull/1001/files#r16654441>
> .
>