From c4159d895ac399ca55326f7b4ff8bfbf8402e654 Mon Sep 17 00:00:00 2001 From: Jordan Date: Sat, 4 Feb 2023 23:54:03 -0700 Subject: initial commit --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ac4846a --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +.POSIX: +.SUFFIXES: + +GO = go +RM = rm +GOFLAGS = -o pigeon +PREFIX = /usr/local +BINDIR = $(PREFIX)/bin + +goflags = $(GOFLAGS) + +all: pigeon + +pigeon: + $(GO) build $(goflags) -ldflags "-X main.buildPrefix=$(PREFIX)" + +clean: + $(RM) -f pigeon + +install: all + mkdir -p $(DESTDIR)$(BINDIR) + cp -f pigeon $(DESTDIR)$(BINDIR) + -- cgit v1.2.3-54-g00ecf