From e982e57fc3b4348bb601a8764ce2d17f0dc053ae Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 26 Apr 2015 10:57:24 -0700 Subject: Makefile.nmake fixes. Removed echo, pushd, popd. --- Makefile.nmake | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'Makefile.nmake') diff --git a/Makefile.nmake b/Makefile.nmake index 3f604e4..b0556e2 100644 --- 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 -- cgit v1.2.3