Mute copy, add uninstall target

This commit is contained in:
Artur Tamborski 2019-01-02 01:28:08 +01:00
parent 124b7d4bb8
commit 721ad00847

View File

@ -30,7 +30,11 @@ run: build
@./$(TARGET)
install: $(TARGET)
@test -d ~/bin && cp $(TARGET) ~/bin/$(INSTALL) || echo "Directory ~/bin does not exist, installation failed"
@test -d ~/bin && cp $(TARGET) ~/bin &>/dev/null \
|| echo "Directory ~/bin does not exist, installation failed"
uninstall:
-@rm ~/bin/psh
clean:
@rm -r $(TARGET) $(OBJS) $(OBJDIR) 2>/dev/null || true