From c60ef3100c9de80616380ff9d153a5e2033991e1 Mon Sep 17 00:00:00 2001 From: Alexander Avery Date: Wed, 21 Dec 2022 21:44:33 -0500 Subject: [PATCH] added Makefile --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1ac7cfa --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +TARGET = pdi +BUILDDIR = build +INSTALLDIR=/usr/local/bin + +$(BUILDDIR)/$(TARGET): main.go + [ -d $(BUILDDIR) ] || mkdir -p $(BUILDDIR) + go build -o $(BUILDDIR)/$(TARGET) . + +.PHONY: install + +install: + install -m 755 $(BUILDDIR)/$(TARGET) $(INSTALLDIR)/$(TARGET)