mirror of
https://passt.top/passt
synced 2025-01-22 04:05:22 +00:00
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>
This commit is contained in:
parent
ae92e77d5e
commit
4f95db7945
6
Makefile
6
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user