File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ MANOUT := $(DOCDIR)/man
1818GO_TAGS ?=
1919
2020.PHONY : build install-binary install-service reload-service run dev setup-precommit \
21- docs install-man uninstall-man install
21+ docs install-man uninstall-man install uninstall
2222
2323# Generate Markdown + man pages from cmd/ginkgo-cli/doc_gen.go (build-tagged //go:build ignore)
2424docs :
@@ -74,6 +74,15 @@ reload-service:
7474# one-shot local install: binary + man
7575install : build install-binary install-man
7676
77+ uninstall : uninstall-man
78+ @echo " Removing binary symlinks..."
79+ @rm -f $(BIN_SYMLINK ) $(BIN_DAEMON_SYMLINK )
80+ @echo " Removing systemd user service symlink..."
81+ @rm -f $(SERVICE_DIR ) /ginkgo.service
82+ @echo " Reloading systemd user daemon..."
83+ -@command -v systemctl > /dev/null 2>&1 && systemctl --user daemon-reload || true
84+ @echo " Uninstall complete"
85+
7786run : build install-binary install-service reload-service
7887
7988dev : run
You can’t perform that action at this time.
0 commit comments