Browse Source

added Makefile

master
Alexander Avery 2 years ago
parent
commit
c60ef3100c
  1. 12
      Makefile

12
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)
Loading…
Cancel
Save