Skip to content

Commit

Permalink
Fix install from source documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Sep 3, 2021
1 parent b94a3f1 commit 01ac1d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ GOLANGCI_LINT_VERSION=1.42.0
.PHONY: default
default: run build test lint format

.PHONY: install
install:
go install -ldflags "-X main.version=$(shell git describe --abbrev=0 --tags) \
-X main.commit=$(shell git rev-parse HEAD) \
-X main.date=$(shell date -u +%Y-%m-%dT%H:%M:%SZ) \
-X main.builtBy=source"

.PHONY: build
build: build-darwin build-freebsd build-linux build-windows

Expand Down
4 changes: 3 additions & 1 deletion docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ page](https://github.com/twpayne/chezmoi/releases/latest).
Download, build, and install chezmoi for your system:

```console
$ go install github.com/twpayne/chezmoi@latest
$ git clone https://github.com/twpayne/chezmoi.git
$ cd chezmoi
$ make install
```

Building chezmoi requires Go 1.17 or later.
Expand Down

0 comments on commit 01ac1d0

Please sign in to comment.