summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-24 21:34:19 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-24 21:34:19 -0800
commitbe834300a31ffac837b6434650c206aa8e292e1b (patch)
treec6353469918635bd2a08b1c8b83074f8e3a67b00 /Makefile
parent6bd809b6b4836e1026998c2d4c1fc76506de3e8f (diff)
parent9de6890f11cf6d1947132bbf90e3735aabb0a683 (diff)
Merge pull request #218 from nwellnhof/windows_fixes
Windows fixes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4f8b15b..7d7e78c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
SRCDIR?=src
DATADIR?=data
BUILDDIR?=build
+GENERATOR?=Unix Makefiles
MINGW_BUILDDIR?=build-mingw
MINGW_INSTALLDIR?=windows
SPEC=spec.txt
@@ -28,7 +29,7 @@ check:
$(BUILDDIR): check
mkdir -p $(BUILDDIR); \
cd $(BUILDDIR); \
- cmake .. -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
+ cmake .. -G "$(GENERATOR)" -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
install: $(BUILDDIR) man/man1/cmark.1
make -C $(BUILDDIR) install