From 7290aea3b77fe6603a62cc686a23e1dbca21de65 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 25 Aug 2017 19:18:17 +0200 Subject: nx-X11/Makefile: Only run full CleanEnv code, if imake is installed in the build-system. --- nx-X11/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'nx-X11') 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 -- cgit v1.2.3