cmark

My personal build of CMark ✏️

Commit
e982e57fc3b4348bb601a8764ce2d17f0dc053ae
Parent
835d63b63c920e972b4e72418dea0dd08c667bde
Author
John MacFarlane <jgm@berkeley.edu>
Date

Makefile.nmake fixes.

Removed echo, pushd, popd.

Diffstat

1 file changed, 6 insertions, 7 deletions

Status File Name N° Changes Insertions Deletions
Modified Makefile.nmake 13 6 7
diff --git a/Makefile.nmake b/Makefile.nmake
@@ -7,21 +7,20 @@ PROG=$(BUILDDIR)\src\cmark.exe
 GENERATOR=NMake Makefiles
 
 all: $(BUILDDIR)
-	@pushd $(BUILDDIR) && $(MAKE) /nologo && popd
+	@cd $(BUILDDIR) && $(MAKE) /nologo && cd ..
 
 $(BUILDDIR):
-	@cmake --version > nul || (echo "You need cmake to build this program: http://www.cmake.org/download/" && exit 1)
-	-mkdir $(BUILDDIR) 2> nul
-	pushd $(BUILDDIR) && \
+	@-mkdir $(BUILDDIR) 2> nul
+	cd $(BUILDDIR) && \
 	cmake \
 	    -G "$(GENERATOR)" \
 	    -D CMAKE_BUILD_TYPE=$(BUILD_TYPE) \
 	    -D CMAKE_INSTALL_PREFIX=$(INSTALLDIR) \
 	    .. && \
-	popd
+	cd ..
 
 install: all
-	@pushd $(BUILDDIR) && $(MAKE) /nologo install && popd
+	@cd $(BUILDDIR) && $(MAKE) /nologo install && cd ..
 
 clean:
 	-rmdir /s /q $(BUILDDIR) $(MINGW_INSTALLDIR) 2> nul
@@ -30,7 +29,7 @@ $(SRCDIR)\case_fold_switch.inc: $(DATADIR)\CaseFolding-3.2.0.txt
 	perl mkcasefold.pl < $? > $@
 
 test: $(SPEC) all
-	@pushd $(BUILDDIR) && $(MAKE) /nologo test ARGS="-V" && popd
+	@cd $(BUILDDIR) && $(MAKE) /nologo test ARGS="-V" && cd ..
 
 distclean: clean
 	del /q src\scanners.c 2> nul