install: when running make as root try to avoid root-owned turds
commit61f51ebd85128f2c442f5fc5b08165640936307a
authorKyle J. McKay <mackyle@gmail.com>
Wed, 3 Sep 2014 04:22:47 +0000 (2 21:22 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 3 Sep 2014 04:22:47 +0000 (2 21:22 -0700)
tree2829bbeed30be21589fa73a2bd575b3c2f885f11
parent9d7d03f5c589f5e8c97537ac90db1f2edfaab8de
install: when running make as root try to avoid root-owned turds

The recommended install process is "sudo make install".
The alternate process is "sudo MAKE=make install.sh".

Both involve running make as root.  Try to avoid leaving any
root-owned turds behind by changing the owner of files that could
possibly be updated by make back to $SUDO_USER.

If the current user is root and SUDO_USER is not set or is set
to root then just issue a warning instead.
Makefile
install.sh