Using install instead of cp

This commit is contained in:
Bandie 2018-05-28 14:06:45 +02:00
parent 2098b77656
commit 9299f5b00d
Signed by: Bandie
GPG Key ID: C1E133BC65A822DD

View File

@ -6,12 +6,10 @@ all:
@printf "Nothing to make. Run make install.\n"
install:
cp ./sbin/grub2-verify /usr/sbin/
cp ./sbin/grub2-sign /usr/sbin/
cp ./sbin/grub2-unsign /usr/sbin/
cp ./sbin/grub2-update-kernel-signature /usr/sbin/
chown root:root /usr/sbin/grub2-{verify,sign,unsign,update-kernel-signature}
chmod 744 /usr/sbin/grub2-{verify,sign,unsign,update-kernel-signature}
install -D -m744 sbin/grub2-verify /usr/sbin/grub2-verify
install -D -m744 sbin/grub2-sign /usr/sbin/grub2-sign
install -D -m744 sbin/grub2-unsign /usr/sbin/grub2-unsign
install -D -m744 sbin/grub2-update-kernel-signature /usr/sbin/grub2-update-kernel-signature
@printf "Done.\n"
uninstall: