23 lines
No EOL
336 B
Makefile
23 lines
No EOL
336 B
Makefile
DESTDIR ?= /usr
|
|
BUILDDIR ?= dist
|
|
CGO_ENABLED ?= 0
|
|
|
|
all: cmd
|
|
|
|
cmd ./cmd/eon/main.go:
|
|
mkdir -p $(BUILDDIR)/bin
|
|
go build -o $(BUILDDIR)/bin/eon ./cmd/eon -ldflags "-s -w"
|
|
|
|
|
|
|
|
install:
|
|
install -d $(DESTDIR)/bin
|
|
install -m 755 $(BUILDDIR)/bin/eon $(DESTDIR)/bin/eon
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)/bin/eon
|
|
|
|
test:
|
|
|
|
clean:
|
|
rm -rf $(BUILDDIR)
|