From eec80955146fe21f95884b8a151ba2a98b881bae Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 27 Jan 2017 19:14:30 +0100 Subject: Shortening file removal handling in uninstall target in makefile. Signed-off-by: Daniel Baumann --- Makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9e6966e..41b6d99 100644 --- a/Makefile +++ b/Makefile @@ -118,20 +118,14 @@ uninstall: for FILE in share/systemd*; \ do \ - if [ -e "$${FILE}" ]; \ - then \ - rm -f $(DESTDIR)/lib/systemd/system/$$(basename $${FILE}); \ - fi; \ + rm -f $(DESTDIR)/lib/systemd/system/$$(basename $${FILE}); \ done for SECTION in $$(seq 1 8); \ do \ for FILE in share/man/*.$${SECTION}; \ do \ - if [ -e "$${FILE}" ]; \ - then \ - rm -f $(DESTDIR)/usr/share/man/man$${SECTION}/$$(basename $${FILE}); \ - fi; \ + rm -f $(DESTDIR)/usr/share/man/man$${SECTION}/$$(basename $${FILE}); \ done; \ rmdir --ignore-fail-on-non-empty --parents $(DESTDIR)/usr/share/man/man$${SECTION} || true; \ done -- cgit v1.2.3