From 383dbf7921e0afc083b2e6f4f9fec0aa0a2e7a95 Mon Sep 17 00:00:00 2001 From: Avril Date: Tue, 16 Jun 2020 23:21:26 +0100 Subject: [PATCH] make intall + uninstall --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d841d65..dc72f71 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +SRC:= emacs-cleaner.go +INSTALL_DIR:= /usr/local/bin all: clean emacs-cleaner @@ -5,5 +7,11 @@ clean: rm -f emacs-cleaner emacs-cleaner: - go build emacs-cleaner.go + go build $(SRC) strip $@ + +install: + cp -f emacs-cleaner $(INSTALL_DIR)/emacs-cleaner + +uninstall: + rm -f $(INSTALL_DIR)/emacs-cleaner