aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/makefile b/makefile
index d177b65..b74233a 100644
--- a/makefile
+++ b/makefile
@@ -17,7 +17,8 @@ mrproper: clean
/usr/bin/todo: todo
cp ./todo /usr/bin/
-install: /usr/bin/todo
+install: todo
+ [ -e /usr/bin/todo ] && sudo cp todo /usr/bin/todo
uninstall: /usr/bin/todo
rm /usr/bin/todo