From f1e64cfcdbf1fbbe8a4d5b4a34fd712e70bdf27d Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 9 Oct 2015 23:16:38 -0700 Subject: Makefile.nmake: be more robust when cmake is missing. Previously, when cmake was missing, the build dir would be created anyway, and subsequent attempts (even with cmake) would fail, because cmake would not be run. Depending on build/CMakeFiles is more robust -- this won't be created unless cmake is run. Partially addresses #85. --- Makefile.nmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile.nmake') diff --git a/Makefile.nmake b/Makefile.nmake index b0556e2..ecfd4f5 100644 --- a/Makefile.nmake +++ b/Makefile.nmake @@ -6,10 +6,10 @@ SPEC=test/spec.txt PROG=$(BUILDDIR)\src\cmark.exe GENERATOR=NMake Makefiles -all: $(BUILDDIR) +all: $(BUILDDIR)/CMakeFiles @cd $(BUILDDIR) && $(MAKE) /nologo && cd .. -$(BUILDDIR): +$(BUILDDIR)/CMakeFiles: @-mkdir $(BUILDDIR) 2> nul cd $(BUILDDIR) && \ cmake \ -- cgit v1.2.3