~elektito/hodhod

8233bf2b027866be010ac6e3c151a905218effc3 — Mostafa Razavi 1 year, 6 months ago 2ab0120
Add make install target
1 files changed, 6 insertions(+), 1 deletions(-)

M Makefile
M Makefile => Makefile +6 -1
@@ 1,6 1,7 @@
NAME=hodhod
BINDIR ?= .
SRC != find . -name '*.go' ! -name '*_test.go'
INSTALL_DIR ?= /usr/local/bin

# Force using go's builtin dns resolver, instead of the system one, in order to
# produce a nice, clean, statically-linked executable!


@@ 14,7 15,11 @@ all: $(NAME)
release: $(NAME)
	strip $(NAME)

install:
	mkdir -p $(INSTALL_DIR)
	install $(BINDIR)/$(NAME) $(INSTALL_DIR)

clean:
	rm -f $(BINDIR)/$(NAME)

.PHONY: all clean
.PHONY: all clean install