From 588ebe517e2fc196392fea81d7ce8b49571349b0 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Fri, 13 Jun 2025 16:35:31 +0700 Subject: make: remove build task from install tasks The build task should be run by user, while install tasks run by root. If we make build depends on install then the binaries will rebuild by user root. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 459a327..08c5bbc 100644 --- a/Makefile +++ b/Makefile @@ -164,7 +164,7 @@ uninstall-common: .PHONY: install deploy uninstall -install: build install-common +install: install-common mkdir -p $(PREFIX)/usr/lib/systemd/system cp _sys/usr/lib/systemd/system/rescached.service $(PREFIX)/usr/lib/systemd/system/ @@ -186,11 +186,11 @@ deploy: build install-macos: DIR_BIN=/usr/local/bin install-macos: DIR_MAN=/usr/local/share/man install-macos: DIR_RESCACHED=/usr/local/share/rescached -install-macos: build install-common +install-macos: install-common cp _sys/Library/LaunchDaemons/info.kilabit.rescached.plist /Library/LaunchDaemons/ deploy-macos: DIR_BIN=/usr/local/bin -deploy-macos: build +deploy-macos: sudo cp _bin/$(GOOS)_$(GOARCH)/rescached $(DIR_BIN)/ sudo cp _bin/$(GOOS)_$(GOARCH)/resolver $(DIR_BIN)/ sudo launchctl stop info.kilabit.rescached -- cgit v1.3