From: Alexander Barton Date: Sun, 25 Jan 2015 16:23:36 +0000 (+0100) Subject: Makefile: Implement "upgrade" target X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ConfigScripts.git;a=commitdiff_plain;h=6ea4afde270aee50345e7bb6fa0936eee9925307;hp=becd982a7c9314081ecdaf84cc64e769bb885b35 Makefile: Implement "upgrade" target --- 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: