summaryrefslogtreecommitdiff
path: root/Makefile.nmake
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.nmake')
-rw-r--r--Makefile.nmake13
1 files changed, 6 insertions, 7 deletions
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