cmark

My personal build of CMark ✏️

Commit
f1e64cfcdbf1fbbe8a4d5b4a34fd712e70bdf27d
Parent
5df72d797a1082adf9bc59f301ec66bf7d9446ca
Author
John MacFarlane <jgm@berkeley.edu>
Date

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

1 file changed, 2 insertions, 2 deletions

Status File Name N° Changes Insertions Deletions
Modified Makefile.nmake 4 2 2
diff --git 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 \