aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <m.shulhan@gmail.com>2020-09-02 02:34:38 +0700
committerShulhan <m.shulhan@gmail.com>2020-09-02 02:34:38 +0700
commit18711e43c2f53643ff7a758d258c6d7b28340c70 (patch)
tree794750954c3d3beff7fd4ed5941011b3cc87293f
parent0ea29cef3402ed356f4798a8cf7517b6965d7bf7 (diff)
downloadrescached-18711e43c2f53643ff7a758d258c6d7b28340c70.tar.xz
Makefile: set DIR_BIN, DIR_MAN, and DIR_RESCACHED on uninstall-macos
While at it, remove unused, OS specific, "coverbrowse" task.
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 33690e0..08d5385 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
.PHONY: build debug install install-common install-macos
.PHONY: uninstall uninstall-macos
-.PHONY: test test.prof coverbrowse lint
+.PHONY: test test.prof lint
.PHONY: doc
.PHONY: clean distclean
.PHONY: deploy
@@ -51,9 +51,6 @@ $(COVER_HTML): $(COVER_OUT)
$(COVER_OUT): $(SRC) $(SRC_TEST)
go test $(DEBUG) -count=1 -coverprofile=$@ ./...
-coverbrowse: $(COVER_HTML)
- xdg-open $<
-
lint:
-golangci-lint run --enable-all ./...
@@ -115,7 +112,7 @@ install-common:
install: build install-common
- mkdir -p $(PREFIX)/usr/lib/systemd/system
+ mkdir -p $(PREFIX)/usr/lib/systemd/system
cp _scripts/rescached.service $(PREFIX)/usr/lib/systemd/system/
@@ -143,6 +140,9 @@ uninstall: uninstall-common
rm -f /usr/lib/systemd/system/rescached.service
+uninstall-macos: DIR_BIN=/usr/local/bin
+uninstall-macos: DIR_MAN=/usr/local/share/man
+uninstall-macos: DIR_RESCACHED=/usr/local/share/rescached
uninstall-macos: uninstall-common
launchctl stop info.kilabit.rescached
launchctl unload info.kilabit.rescached