mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Add 'make dependencies' to the Makefile
This commit is contained in:
parent
cd5a7968c4
commit
ca4d6f2fe8
5
Makefile
5
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)"
|
||||
|
@ -17,6 +17,7 @@ git clone git@github.com:senorprogrammer/wtf.git
|
||||
`cd` into that `wtf/` directory and run:
|
||||
|
||||
```bash
|
||||
make dependencies
|
||||
make install
|
||||
```
|
||||
|
||||
|
@ -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 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.</description>
|
||||
|
@ -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 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.</description>
|
||||
|
@ -113,7 +113,8 @@
|
||||
<p>Clone this repo:</p>
|
||||
<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 install</code></pre></div>
|
||||
<div class="highlight"><pre class="chroma"><code class="language-bash" data-lang="bash">make dependencies
|
||||
make install</code></pre></div>
|
||||
<p>and that should probably do it.</p>
|
||||
|
||||
<h2 id="as-a-binary">As a Binary</h2>
|
||||
|
Loading…
x
Reference in New Issue
Block a user