diff options
| author | radhitya <alif@radhitya.org> | 2026-06-21 09:48:42 +0700 |
|---|---|---|
| committer | radhitya <alif@radhitya.org> | 2026-06-21 09:48:42 +0700 |
| commit | b7359e1d45f505171356bcae3c7d5e2341ecc859 (patch) | |
| tree | f91d4a4b08ce279d488a76e9b7141e69fc844ea9 /Makefile | |
| parent | 2b1f613c42de3861141eb6f93c1740b6937ee183 (diff) | |
forward mode, cache opt, ACL, rate limit, admin/health, systemd, fix UDP reply
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -4,9 +4,12 @@ GO = go MAIN = . OUTPUT = build/$(BINARY) LDFLAGS = -ldflags="-s -w -X main.version=$(VERSION)" +DESTDIR ?= +BINDIR ?= /usr/bin +SYSTEMD_DIR ?= /usr/lib/systemd/system -.PHONY: default build test lint fmt clean run install fuzz race \ - build-linux +.PHONY: default build test lint fmt clean run install install-service install-config fuzz race \ + build-linux build-darwin build-arm default: test lint build @@ -28,8 +31,17 @@ clean: run: build ./$(OUTPUT) -install: - $(GO) install $(LDFLAGS) $(MAIN) +install: build + install -d $(DESTDIR)$(BINDIR) + install -m 0755 $(OUTPUT) $(DESTDIR)$(BINDIR)/$(BINARY) + +install-service: install + install -d $(DESTDIR)$(SYSTEMD_DIR) + install -m 0644 etc/linum.service $(DESTDIR)$(SYSTEMD_DIR)/linum.service + +install-config: + install -d $(DESTDIR)/etc/linum + install -m 0644 linum.toml $(DESTDIR)/etc/linum/linum.toml fuzz: $(GO) test -fuzz=FuzzBuildResponse -fuzztime=30s ./internal/server/ |
