aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-10 22:42:44 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-10 22:42:44 -0800
commitb530d53fffc3703f37881b7510b4ea5575ac17f4 (patch)
tree8641f1f18d76179d72b0dc624c56e778356bd0cd
parent343e9b35604eee88300645e4d79a8e1d18019e00 (diff)
Makefile: Added separate 'debug' target, 'all' does Release build.
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7ff9d10..7007dff 100644
--- a/Makefile
+++ b/Makefile
@@ -7,14 +7,16 @@ SITE=_site
BUILDDIR=build
FUZZCHARS?=2000000 # for fuzztest
PROG?=$(BUILDDIR)/src/cmark
-BUILDTYPE?=Debug
.PHONY: all spec leakcheck clean fuzztest dingus upload jshint test testjs benchjs update-site upload-site check
-all: check man/man1/cmark.1
- mkdir -p $(BUILDDIR); cd build; cmake .. -DCMAKE_BUILD_TYPE=$(BUILDTYPE); make
+all: check
+ mkdir -p $(BUILDDIR); cd build; cmake .. -DCMAKE_BUILD_TYPE=Release; make
-install: check
+debug: check
+ mkdir -p $(BUILDDIR); cd build; cmake .. -DCMAKE_BUILD_TYPE=Debug; make
+
+install: check man/man1/cmark.1
mkdir -p $(BUILDDIR); cd build; cmake .. -DCMAKE_BUILD_TYPE=Release; make install
clean: