cmark

My personal build of CMark ✏️

Makefile.nmake (842B)

 1 SRCDIR=src
 2 DATADIR=data
 3 BUILDDIR=build
 4 INSTALLDIR=windows
 5 SPEC=test/spec.txt
 6 PROG=$(BUILDDIR)\src\cmark.exe
 7 GENERATOR=NMake Makefiles
 8 
 9 all: $(BUILDDIR)/CMakeFiles
10 	@cd $(BUILDDIR) && $(MAKE) /nologo && cd ..
11 
12 $(BUILDDIR)/CMakeFiles:
13 	@-mkdir $(BUILDDIR) 2> nul
14 	cd $(BUILDDIR) && \
15 	cmake \
16 	    -G "$(GENERATOR)" \
17 	    -D CMAKE_BUILD_TYPE=$(BUILD_TYPE) \
18 	    -D CMAKE_INSTALL_PREFIX=$(INSTALLDIR) \
19 	    .. && \
20 	cd ..
21 
22 install: all
23 	@cd $(BUILDDIR) && $(MAKE) /nologo install && cd ..
24 
25 clean:
26 	-rmdir /s /q $(BUILDDIR) $(MINGW_INSTALLDIR) 2> nul
27 
28 $(SRCDIR)\case_fold_switch.inc: $(DATADIR)\CaseFolding-3.2.0.txt
29 	perl mkcasefold.pl < $? > $@
30 
31 test: $(SPEC) all
32 	@cd $(BUILDDIR) && $(MAKE) /nologo test ARGS="-V" && cd ..
33 
34 distclean: clean
35 	del /q src\scanners.c 2> nul
36 	del /q spec.md spec.html 2> nul