summaryrefslogtreecommitdiff
path: root/Makefile.nmake
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-10-09 23:16:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-10-09 23:16:38 -0700
commitf1e64cfcdbf1fbbe8a4d5b4a34fd712e70bdf27d (patch)
treec284297458e4091ecc76a43c6a01a417615ca624 /Makefile.nmake
parent5df72d797a1082adf9bc59f301ec66bf7d9446ca (diff)
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.
Diffstat (limited to 'Makefile.nmake')
-rw-r--r--Makefile.nmake4
1 files changed, 2 insertions, 2 deletions
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 \