~gpanders/ijq

d2a1582760c2f2814b1b87da5c4952678192c0fc — Greg Anders a month ago a239034
Use canonical Makefile variable names

Makefile conventions use lowercase for `prefix` and `bindir`, as well as
`install -d` over `mkdir -p` [1].

[1]: https://www.gnu.org/software/make/manual/html_node/Makefile-Conventions.html#Makefile-Conventions
2 files changed, 13 insertions(+), 8 deletions(-)

M Makefile
M README.md
M Makefile => Makefile +11 -6
@@ 1,8 1,9 @@
PREFIX := /usr/local
BINDIR := $(PREFIX)/bin
SRCS := main.go
prefix = /usr/local
bindir = $(prefix)/bin

VERSION := 0.1.0
SRCS = main.go

VERSION = 0.1.0

.PHONY: all
all: ijq


@@ 12,8 13,12 @@ ijq: $(SRCS)

.PHONY: install
install: ijq
	mkdir -p $(BINDIR)
	install -m 0755 $< $(BINDIR)
	install -d $(bindir)
	install -m 0755 $< $(bindir)

.PHONY: uninstall
uninstall:
	rm $(bindir)/ijq

.PHONY: clean
clean:

M README.md => README.md +2 -2
@@ 35,10 35,10 @@ Install [go][]. Then to install `ijq` under `/usr/local/bin/` simply run

    make install

from the root of the project. To install to another location, set the `PREFIX`
from the root of the project. To install to another location, set the `prefix`
variable, e.g.

    make PREFIX=~/.local install
    make prefix=~/.local install

[go]: https://golang.org/dl/