diff options
| author | Shulhan <ms@kilabit.info> | 2025-06-13 16:35:31 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-06-13 16:36:15 +0700 |
| commit | 588ebe517e2fc196392fea81d7ce8b49571349b0 (patch) | |
| tree | 26d05cf0122d55e71f07c1dd6d44765a97b41ec6 | |
| parent | 77e055b2e0da5d76ca6651020f0eb990a6787e88 (diff) | |
| download | rescached-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.
| -rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
