From ea846e9386a1087f794ed85cc5606ece36ad6916 Mon Sep 17 00:00:00 2001 From: ge Date: Thu, 7 Jul 2022 23:35:19 +0300 Subject: [PATCH] upd Makefile --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f43a9a9..25ae108 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ BIN := "nexclamation" SYMLINK := "n!" COMPL := "completion" -TMP := "./.installation_prefix" +PREF := "./.installation_prefix" all: @echo Nothing to do. Available targets: install, uninstall, set-prefix @@ -12,7 +12,7 @@ all: @echo make PREFIX=/your/path install install: set-prefix - $(eval PREFIX := $(shell cat $(TMP))) + $(eval PREFIX := $(shell cat $(PREF))) @echo Installation PREFIX $(PREFIX) COMPDIR="$(PREFIX)/share/bash-completion/completions"; \ mkdir -p "$(PREFIX)" && \ @@ -23,7 +23,7 @@ install: set-prefix @echo Successfully installed uninstall: - $(eval PREFIX := $(shell cat $(TMP))) + $(eval PREFIX := $(shell cat $(PREF))) @echo Installation PREFIX $(PREFIX) COMPDIR="$(PREFIX)/share/bash-completion/completions"; \ rm -f "$(PREFIX)/bin/$(BIN)" && \ @@ -33,5 +33,5 @@ uninstall: set-prefix: if [ "$$UID" == "0" ]; then \ - echo $${PREFIX:-/usr/local} > $(TMP); else \ - echo $${PREFIX:-$$HOME/.local} > $(TMP); fi; + echo $${PREFIX:-/usr/local} > $(PREF); else \ + echo $${PREFIX:-$$HOME/.local} > $(PREF); fi;