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)