eon/Makefile

23 lines
336 B
Makefile
Raw Normal View History

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
2024-09-14 01:24:09 -07:00
install -m 755 $(BUILDDIR)/bin/eon $(DESTDIR)/bin/eon
uninstall:
rm -f $(DESTDIR)/bin/eon
test:
clean:
rm -rf $(BUILDDIR)