summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-01-27 18:14:30 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-04-03 10:09:12 +0000
commiteec80955146fe21f95884b8a151ba2a98b881bae (patch)
tree97152e0b6923846f88740f4bd86f7d143e07b6bc
parentReleasing version 20170101. (diff)
downloadcompute-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--Makefile10
1 files changed, 2 insertions, 8 deletions
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