From 7f57333518ba0905d4447f7cd679ab018bfa12a7 Mon Sep 17 00:00:00 2001 From: radhitya Date: Mon, 22 Jun 2026 20:11:01 +0700 Subject: fix bug and makefile --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bd66e11..dfbfbf3 100644 --- a/Makefile +++ b/Makefile @@ -32,13 +32,12 @@ run: build ./$(OUTPUT) install: - install -d $(DESTDIR)$(BINDIR) - install -m 0755 $(OUTPUT) $(DESTDIR)$(BINDIR)/$(BINARY) - install -d $(DESTDIR)/etc/linum/blocklist + mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)/etc/linum/blocklist + cp $(OUTPUT) $(DESTDIR)$(BINDIR)/$(BINARY) install-service: - install -d $(DESTDIR)$(SYSTEMD_DIR) - install -m 0644 etc/linum.service $(DESTDIR)$(SYSTEMD_DIR)/linum.service + mkdir -p $(DESTDIR)$(SYSTEMD_DIR) + cp etc/linum.service $(DESTDIR)$(SYSTEMD_DIR)/linum.service install-config: install -d $(DESTDIR)/etc/linum @@ -48,7 +47,7 @@ fuzz: $(GO) test -fuzz=FuzzBuildResponse -fuzztime=30s ./internal/server/ build-linux: - GOOS=linux GOARCH=amd64 $(GO) build $(LDFLAGS) -o build/$(BINARY)-linux-amd64 $(MAIN) + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GO) build $(LDFLAGS) -o build/$(BINARY)-linux-amd64 $(MAIN) build-darwin: GOOS=darwin GOARCH=amd64 $(GO) build $(LDFLAGS) -o build/$(BINARY)-darwin-amd64 $(MAIN) -- cgit v1.2.3