avoid sudo inside of makefile

This commit is contained in:
Mario Fink 2020-02-17 11:23:19 +00:00
parent b9064e2c82
commit 46044ec969

View File

@ -23,7 +23,7 @@ chexe:=$(shell command -v $(EXE))
# install executable if name does not exist yet
install : $(EXE)
ifeq ($(chexe),)
sudo cp $(EXE) /usr/local/bin/
cp $(EXE) /usr/local/bin/
else
@echo "executable with same name already exists! choose different name!"
@exit 1
@ -31,5 +31,5 @@ endif
# deinstall
deinstall :
sudo rm /usr/local/bin/$(EXE)
rm /usr/local/bin/$(EXE)