Mute copy, add uninstall target
This commit is contained in:
parent
124b7d4bb8
commit
721ad00847
6
makefile
6
makefile
@ -30,7 +30,11 @@ run: build
|
|||||||
@./$(TARGET)
|
@./$(TARGET)
|
||||||
|
|
||||||
install: $(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:
|
clean:
|
||||||
@rm -r $(TARGET) $(OBJS) $(OBJDIR) 2>/dev/null || true
|
@rm -r $(TARGET) $(OBJS) $(OBJDIR) 2>/dev/null || true
|
||||||
|
Loading…
Reference in New Issue
Block a user