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.
This commit is contained in:
John MacFarlane 2015-10-09 23:16:38 -07:00
parent 5df72d797a
commit f1e64cfcdb

View File

@ -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 \