aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-06-14 15:12:24 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-06-18 09:06:00 +0200
commit4f95db79456a7dbbf4f2a45abe48c83ba8638b1f (patch)
tree0716e40a1762de9b191c176c561e82712f544c28
parentae92e77d5eb88faed627e38b342a041985c128d5 (diff)
downloadpasst-4f95db79456a7dbbf4f2a45abe48c83ba8638b1f.tar
passt-4f95db79456a7dbbf4f2a45abe48c83ba8638b1f.tar.gz
passt-4f95db79456a7dbbf4f2a45abe48c83ba8638b1f.tar.bz2
passt-4f95db79456a7dbbf4f2a45abe48c83ba8638b1f.tar.lz
passt-4f95db79456a7dbbf4f2a45abe48c83ba8638b1f.tar.xz
passt-4f95db79456a7dbbf4f2a45abe48c83ba8638b1f.tar.zst
passt-4f95db79456a7dbbf4f2a45abe48c83ba8638b1f.zip
Makefile: Tweak $(RM) usage
The use of rm commands in the clean and uninstall targets adds an explicit leading - to ignore errors. However the built-in RM variable in make is actually "rm -f" which already ignores errors, so the - isn't neccessary. Also replace ${RM} with $(RM) which is the more conventional form in Makefiles. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 682aa3c..626bbf7 100644
--- a/Makefile
+++ b/Makefile
@@ -121,7 +121,7 @@ valgrind: all
.PHONY: clean
clean:
- -${RM} $(BIN) *.o seccomp.h pasta.1 \
+ $(RM) $(BIN) *.o seccomp.h pasta.1 \
passt.tar passt.tar.gz *.deb *.rpm
install: $(BIN) $(MANPAGES)
@@ -130,8 +130,8 @@ install: $(BIN) $(MANPAGES)
cp -d $(MANPAGES) $(DESTDIR)$(prefix)/share/man/man1
uninstall:
- -${RM} $(BIN:%=$(DESTDIR)$(prefix)/bin/%)
- -${RM} $(MANPAGES:%=$(DESTDIR)$(prefix)/share/man/man1/%)
+ $(RM) $(BIN:%=$(DESTDIR)$(prefix)/bin/%)
+ $(RM) $(MANPAGES:%=$(DESTDIR)$(prefix)/share/man/man1/%)
pkgs: static
tar cf passt.tar -P --xform 's//\/usr\/bin\//' $(BIN)