From ca4d6f2fe8230ce221962ade228c77eb86cae467 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Fri, 18 May 2018 16:10:59 -0700 Subject: [PATCH] Add 'make dependencies' to the Makefile --- Makefile | 5 +++++ _site/content/posts/installation.md | 1 + docs/index.xml | 2 +- docs/posts/index.xml | 2 +- docs/posts/installation/index.html | 3 ++- 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0cefa79a..7ba72a0f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,10 @@ BRANCH := `git rev-parse --abbrev-ref HEAD` +.PHONY: dependencies install + +dependencies: + go get -v ./... + install: which wtf | xargs rm go install -ldflags="-X main.version=$(shell git describe --always --abbrev=6)_$(BRANCH) -X main.date=$(shell date +%FT%T%z)" diff --git a/_site/content/posts/installation.md b/_site/content/posts/installation.md index 70fa46ff..0042b7a4 100644 --- a/_site/content/posts/installation.md +++ b/_site/content/posts/installation.md @@ -17,6 +17,7 @@ git clone git@github.com:senorprogrammer/wtf.git `cd` into that `wtf/` directory and run: ```bash +make dependencies make install ``` diff --git a/docs/index.xml b/docs/index.xml index 8268bff5..6604167a 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -20,7 +20,7 @@ There are two ways to install WTF: From Source Clone this repo: git clone git@github.com:senorprogrammer/wtf.git cd into that wtf/ directory and run: -make install and that should probably do it. +make dependencies make install and that should probably do it. As a Binary Grab the latest version from here: https://github.com/senorprogrammer/wtf/releases expand it, and cd into the resulting directory. Then run: ./wtf and that should also do it. diff --git a/docs/posts/index.xml b/docs/posts/index.xml index 17d23a26..1e20d51d 100644 --- a/docs/posts/index.xml +++ b/docs/posts/index.xml @@ -20,7 +20,7 @@ There are two ways to install WTF: From Source Clone this repo: git clone git@github.com:senorprogrammer/wtf.git cd into that wtf/ directory and run: -make install and that should probably do it. +make dependencies make install and that should probably do it. As a Binary Grab the latest version from here: https://github.com/senorprogrammer/wtf/releases expand it, and cd into the resulting directory. Then run: ./wtf and that should also do it. diff --git a/docs/posts/installation/index.html b/docs/posts/installation/index.html index 57a8982c..8aba7499 100644 --- a/docs/posts/installation/index.html +++ b/docs/posts/installation/index.html @@ -113,7 +113,8 @@

Clone this repo:

git clone git@github.com:senorprogrammer/wtf.git

cd into that wtf/ directory and run:

-
make install
+
make dependencies
+make install

and that should probably do it.

As a Binary