I have stumbled upon a person changing mv
command to -mv
within a makefile target. What is the difference?
%/install-stamp:
dh_testdir
dh_testroot
dh_prep -p$(subst _,-,$(a))-toolchain
cp -rl $(r) debian/$(subst _,-,$(a))-toolchain
-mv debian/$(subst _,-,$(a))-toolchain/usr/bin/libgcc_s_sjlj-1.dll debian/$(subst _,-,$(a))-toolchain/usr/$(subst \
_,-,$(a))/bin
-mv debian/$(subst _,-,$(a))-toolchain/usr/lib/libiberty.a debian/$(subst _,-,$(a))-toolchain/usr/$(subst _,-,$(a)\
)/lib
rm -f debian/$(subst _,-,$(a))-toolchain/usr/share/man/man1/dllwrap*
rm -f debian/$(subst _,-,$(a))-toolchain/usr/share/man/man7/fsf-funding*
rm -f debian/$(subst _,-,$(a))-toolchain/usr/share/man/man7/gfdl*
rm -f debian/$(subst _,-,$(a))-toolchain/usr/share/man/man7/gpl*
touch $(@)
Add a "-" before any command in a Makefile tells make to not quit if the command returns a non-zero status. Basically it's a "I don't care if it fails".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With