aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-08-25 16:34:30 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-08-25 16:34:30 +0200
commita32f1dfa1b6f7fbc63bcbb274cf936ec00e77e25 (patch)
tree0b836e73931300b0dce2e442b900e0e41972b96a /Makefile
parent71878f7a9b6ca4ac9d1b15374d2f0b8247df7ae4 (diff)
downloadnx-libs-a32f1dfa1b6f7fbc63bcbb274cf936ec00e77e25.tar.gz
nx-libs-a32f1dfa1b6f7fbc63bcbb274cf936ec00e77e25.tar.bz2
nx-libs-a32f1dfa1b6f7fbc63bcbb274cf936ec00e77e25.zip
Makefile: Check for dir existence before attempting to remove it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8f1da954d..27a6f966c 100644
--- a/Makefile
+++ b/Makefile
@@ -120,8 +120,8 @@ clean-env: version
${RM_FILE} nx-X11/exports/include/nx-X11/Xtrans/$${header}; \
done
- -$(RM_DIR) exports/include/nx-X11/Xtrans/
- -$(RM_DIR) exports/include/nx-X11/
+ [ -d exports/include/nx-X11/Xtrans ] && $(RM_DIR) exports/include/nx-X11/Xtrans/ || :
+ [ -d exports/include/nx-X11/ ] && $(RM_DIR) exports/include/nx-X11/ || :
${MAKE} -C nx-X11 CleanEnv FONT_DEFINES=$(FONT_DEFINES)