From 6ea4afde270aee50345e7bb6fa0936eee9925307 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sun, 25 Jan 2015 17:23:36 +0100 Subject: [PATCH] Makefile: Implement "upgrade" target --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 1ca1b33..6786ba6 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,14 @@ install: install-local: sh ./install.sh --local +upgrade: + @fgrep "alex@barton.de" /etc/profile >/dev/null 2>&1 \ + && sudo make install \ + || echo "*** Upgrade: System configuration skipped." + @fgrep "alex@barton.de" ~/.bash_logout >/dev/null 2>&1 \ + && make install \ + || echo "*** Upgrade: User configuration skipped." + clean: check: -- 2.39.2