1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Improve the state of the Makefile a bit

This commit is contained in:
Chris Cummer 2018-05-18 16:37:03 -07:00
parent ca4d6f2fe8
commit 5d66b2acd5
5 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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.

View File

@ -20,7 +20,7 @@
<description>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.</description>

View File

@ -20,7 +20,7 @@
<description>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.</description>

View File

@ -114,7 +114,8 @@
<div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash">git clone git@github.com:senorprogrammer/wtf.git</code></pre></div>
<p><code>cd</code> into that <code>wtf/</code> directory and run:</p>
<div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash">make dependencies
make install</code></pre></div>
make install
make run</code></pre></div>
<p>and that should probably do it.</p>
<h2 id="as-a-binary">As a Binary</h2>