summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorradhitya <alif@radhitya.org>2026-06-22 20:11:01 +0700
committerradhitya <alif@radhitya.org>2026-06-22 20:11:01 +0700
commit7f57333518ba0905d4447f7cd679ab018bfa12a7 (patch)
tree79bf3904ffad2ddd129a026d4e9915c62c0f8f49 /Makefile
parent81661cc8deaacbff3497f0c9ef2625e98257ef76 (diff)
fix bug and makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 5 insertions, 6 deletions
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)