make intall + uninstall

master
Avril 5 years ago
parent 86ae761d1b
commit 383dbf7921
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,3 +1,5 @@
SRC:= emacs-cleaner.go
INSTALL_DIR:= /usr/local/bin
all: clean emacs-cleaner all: clean emacs-cleaner
@ -5,5 +7,11 @@ clean:
rm -f emacs-cleaner rm -f emacs-cleaner
emacs-cleaner: emacs-cleaner:
go build emacs-cleaner.go go build $(SRC)
strip $@ strip $@
install:
cp -f emacs-cleaner $(INSTALL_DIR)/emacs-cleaner
uninstall:
rm -f $(INSTALL_DIR)/emacs-cleaner

Loading…
Cancel
Save