Alexander Avery
2 years ago
1 changed files with 12 additions and 0 deletions
@ -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…
Reference in new issue