make makefile compatible with AUR
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
f77a7c0e7c
commit
baaa41d60f
3 changed files with 5 additions and 4 deletions
|
@ -19,8 +19,8 @@ install:
|
|||
$(GO) install $(GOFLAGS) .
|
||||
else
|
||||
install: all
|
||||
install -m755 $(PROG) $(PREFIX)/$(BIN)
|
||||
install -m644 doc/$(PROG).1 $(MAN)/man1
|
||||
install -Dm755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG)
|
||||
install -Dm644 doc/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1
|
||||
endif
|
||||
|
||||
.PHONY: install
|
4
Makefile
4
Makefile
|
@ -8,7 +8,7 @@ $(PROG): $(SOURCES)
|
|||
|
||||
## install: installs awl and the manpage, RUN AS ROOT
|
||||
install: all
|
||||
install -m755 $(PROG) $(PREFIX)/$(BIN)
|
||||
install -m644 doc/$(PROG).1 $(MAN)/man1
|
||||
install -Dm755 $(PROG) $(DESTDIR)$(PREFIX)/$(BIN)/$(PROG)
|
||||
install -Dm644 doc/$(PROG).1 $(DESTDIR)$(MAN)/man1/$(PROG).1
|
||||
|
||||
.PHONY: install
|
|
@ -12,6 +12,7 @@ GO ?= go
|
|||
TEST ?= $(GO) test -v -race
|
||||
COVER ?= $(GO) tool cover
|
||||
GOFLAGS ?= -ldflags "-s -w -X=main.version=$(VERSION)" -trimpath
|
||||
DESTDIR :=
|
||||
|
||||
PREFIX ?= /usr/local
|
||||
BIN ?= bin
|
||||
|
|
Loading…
Reference in a new issue