From 5d66b2acd513b3a655a3b00b5f29c248b39557b3 Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Fri, 18 May 2018 16:37:03 -0700 Subject: [PATCH] Improve the state of the Makefile a bit --- Makefile | 6 +++++- _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(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 7ba72a0f..60ef00cf 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ BRANCH := `git rev-parse --abbrev-ref HEAD` -.PHONY: dependencies install +.PHONY: dependencies install run dependencies: go get -v ./... @@ -8,3 +8,7 @@ dependencies: 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)" + which wtf + +run: + wtf diff --git a/_site/content/posts/installation.md b/_site/content/posts/installation.md index 0042b7a4..cd11efa5 100644 --- a/_site/content/posts/installation.md +++ b/_site/content/posts/installation.md @@ -19,6 +19,7 @@ git clone git@github.com:senorprogrammer/wtf.git ```bash make dependencies make install +make run ``` and that should probably do it. diff --git a/docs/index.xml b/docs/index.xml index 6604167a..c76d70aa 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 dependencies make install and that should probably do it. +make dependencies make install make run 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 1e20d51d..d4fbb64c 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 dependencies make install and that should probably do it. +make dependencies make install make run 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 8aba7499..48099103 100644 --- a/docs/posts/installation/index.html +++ b/docs/posts/installation/index.html @@ -114,7 +114,8 @@
git clone git@github.com:senorprogrammer/wtf.git

cd into that wtf/ directory and run:

make dependencies
-make install
+make install +make run

and that should probably do it.

As a Binary