Skip to content

Instantly share code, notes, and snippets.

@robinmonjo
Created July 24, 2014 19:41
Show Gist options
  • Save robinmonjo/97556f98d0f850f8b477 to your computer and use it in GitHub Desktop.
Save robinmonjo/97556f98d0f850f8b477 to your computer and use it in GitHub Desktop.
psdoc makefile
# make .
# make -C path/dir
build: psdock
$(info ==> psdock binary in $(GOPATH)/bin/psdock (tip: add the $(GOPATH)/bin to your PATH))
psdock: lib_psdock
go install ./cmd/psdock/
lib_psdock: check_env
go install .
check_env:
ifndef GOPATH
$(error GOPATH must be set)
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment