> Very often I see makefile use install(1) when cp, mkdir, chmod, and
> Co. would be equally compact.

Consider

install -D -m755 -u foo -g bar foo.sh $DESTDIR/usr/bin

vs.

mkdir -p $DESTDIR/usr/bin
cp foo.sh $DESTDIR/usr/bin
chmod 755 $DESTDIR/usr/bin/foo.sh
chown foo:bar $DESTDIR/usr/bin/foo.sh

and tell me about "equally compact" again...
install has been there since one of the early BSD releases and has been adopted
from every UNIX(-clone) I am aware of.

Kind regards,

Moritz Wilhelmy

Reply via email to