diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2017-01-27 18:14:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2017-04-03 10:09:12 +0000 |
commit | eec80955146fe21f95884b8a151ba2a98b881bae (patch) | |
tree | 97152e0b6923846f88740f4bd86f7d143e07b6bc /Makefile | |
parent | Releasing version 20170101. (diff) | |
download | compute-tools-eec80955146fe21f95884b8a151ba2a98b881bae.tar.xz compute-tools-eec80955146fe21f95884b8a151ba2a98b881bae.zip |
Shortening file removal handling in uninstall target in makefile.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -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 |