aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-08-25 19:18:17 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-08-25 19:18:17 +0200
commit7290aea3b77fe6603a62cc686a23e1dbca21de65 (patch)
tree8e8361be246909e765fadc5ed0a69eb2ceea34a4
parenta32f1dfa1b6f7fbc63bcbb274cf936ec00e77e25 (diff)
downloadnx-libs-7290aea3b77fe6603a62cc686a23e1dbca21de65.tar.gz
nx-libs-7290aea3b77fe6603a62cc686a23e1dbca21de65.tar.bz2
nx-libs-7290aea3b77fe6603a62cc686a23e1dbca21de65.zip
nx-X11/Makefile: Only run full CleanEnv code, if imake is installed in the build-system.
-rw-r--r--nx-X11/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/nx-X11/Makefile b/nx-X11/Makefile
index 5845a4c77..c9f79c611 100644
--- a/nx-X11/Makefile
+++ b/nx-X11/Makefile
@@ -54,10 +54,12 @@ CleanEnv:
$(RM) xmakefile; \
fi
@rm -f $(IRULESRC)/date.def; echo "" > $(IRULESRC)/date.def;
- ${MAKE} $(MFLAGS) xmakefile
- ${MAKE_CMD} $(MFLAGS) VerifyOS
- ${MAKE_CMD} $(MFLAGS) Makefiles
- ${MAKE_CMD} $(MFLAGS) BOOTSTRAPSUBDIRS= clean
+ which $(IMAKE) 1>/dev/null && ${MAKE} $(MFLAGS) xmakefile || :
+ @if [ -f xmakefile ]; then \
+ ${MAKE_CMD} $(MFLAGS) VerifyOS; \
+ ${MAKE_CMD} $(MFLAGS) Makefiles; \
+ ${MAKE_CMD} $(MFLAGS) BOOTSTRAPSUBDIRS= clean; \
+ fi
BuildEnv: CleanEnv BuildIncludes BuildDependsOnly