From a347a311f6a328ba1918ff1e2300d4c7c3318757 Mon Sep 17 00:00:00 2001 From: Francesco Camuffo Date: Sat, 7 Aug 2021 17:37:35 +0200 Subject: [PATCH] Add Makefile --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6739e85 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +.POSIX: +.SUFFIXES: + +export GO111MODULE=on + +GO = go +RM = rm +GOFLAGS = +PREFIX = /usr/local +BINDIR = $(PREFIX)/bin + +goflags = $(GOFLAGS) + +all: corylus + +corylus: + $(GO) build $(goflags) . + +clean: + $(RM) -rf corylus + +install: + mkdir -p $(DESTDIR)$(BINDIR) + cp -f corylus $(DESTDIR)$(BINDIR) + +.PHONY: corylus clean install -- 2.45.2