Skip to content

Commit

Permalink
use go get github.com/davecgh/go-spew... to simplify Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
skaes committed Aug 8, 2018
1 parent d9c6bf5 commit 369487e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Makefile
Expand Up @@ -8,19 +8,15 @@ GO_PATH = $(makefile_dir)/go
GO_DEPS = \
github.com/jessevdk/go-flags \
github.com/pkg/errors \
github.com/davecgh/go-spew... \
gopkg.in/gorilla/websocket.v1 \
gopkg.in/redis.v5 \
gopkg.in/tylerb/graceful.v1 \
gopkg.in/yaml.v2

# the following dependencies cause go get to return an error code
EXTRA_DEPS = \
github.com/davecgh/go-spew

.godeps:
git submodule init
git submodule update
-$(GO_ENV) go get $(EXTRA_DEPS)
$(GO_ENV) go get $(GO_DEPS)
touch .godeps

Expand All @@ -45,7 +41,7 @@ clean:
rm -rf go/pkg go/bin $(GO_TARGETS) .godeps

realclean: clean
rm -rf $(patsubst %,go/src/%,$(GO_DEPS) $(EXTRA_DEPS))
rm -rf $(patsubst %,go/src/%,$(GO_DEPS))

install: $(GO_INSTALL_TARGETS)
$(INSTALL_PROGRAM) $(GO_INSTALL_TARGETS) $(SCRIPTS) $(BIN_DIR)
Expand Down

0 comments on commit 369487e

Please sign in to comment.