commit 035d95032c1f57df2b9b63a1dcab52bd1d5292aa parent 54a091b5ced30e6cde76e9ebb11421c1d6fb963a Author: Stephen Gregoratto <dev@sgregoratto.me> Date: Wed, 9 Oct 2019 15:50:29 +1100 Add .gitignore, makefile. Remove travis file Diffstat:
A | .gitignore | | | 1 | + |
D | .travis.yml | | | 5 | ----- |
A | Makefile | | | 18 | ++++++++++++++++++ |
3 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -0,0 +1 @@ +age diff --git a/.travis.yml b/.travis.yml @@ -1,5 +0,0 @@ -os: linux -arch: arm64 -dist: bionic -language: go -go: 1.x diff --git a/Makefile b/Makefile @@ -0,0 +1,18 @@ +PREFIX = /usr/local +BINDIR = /usr/local/bin +MANDIR = /usr/local/man +GOFLAGS = -trimpath -ldflags '-extldflags $(LDFLAGS)' + +all: age test + +age: + go build $(GOFLAGS) -o $@ ./cmd/age + +test: + go test ./... + +install: age + mkdir -p $(DESTDIR)/$(BINDIR) + mkdir -p $(DESTDIR)/$(MANDIR) + install -m 0555 age $(DESTDIR)/$(BINDIR)/age + install -m 0444 age.1 $(DESTDIR)/$(MANDIR)/age.1