aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/Makefile')
-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