diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-16 16:30:42 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2014-11-24 22:09:52 +0100 |
commit | 9de6890f11cf6d1947132bbf90e3735aabb0a683 (patch) | |
tree | a08335b3e3d1efb8f085093c4e158aeab04ca229 /Makefile | |
parent | 3248516179ea8618333f8db31500d8a53e3184f0 (diff) |
Add option to select cmake generator
This allows to build under MSYS. The MSYS generator can be selected with
make GENERATOR="MSYS Makefiles"
But the default "UNIX Makefiles" generator also seems to work.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |