aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2025-06-13 16:35:31 +0700
committerShulhan <ms@kilabit.info>2025-06-13 16:36:15 +0700
commit588ebe517e2fc196392fea81d7ce8b49571349b0 (patch)
tree26d05cf0122d55e71f07c1dd6d44765a97b41ec6 /Makefile
parent77e055b2e0da5d76ca6651020f0eb990a6787e88 (diff)
downloadrescached-588ebe517e2fc196392fea81d7ce8b49571349b0.tar.xz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files 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