aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-11-29 16:53:01 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-11-29 16:53:01 -0800
commitdc5345daad121be5ee38e673acd532e69d5f8e75 (patch)
treeb5a97ed8e11a206aa727ab46f6e8e531503812cd /Makefile
parente466700c9744dd361b4fb17f93382449a8a6a166 (diff)
Keep cmark.1 in repository, so pandoc isn't required to build.
See #224.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index deeac88..2d9a483 100644
--- a/Makefile
+++ b/Makefile
@@ -21,13 +21,13 @@ JSMODULES=$(wildcard js/lib/*.js)
.PHONY: all spec leakcheck clean fuzztest dingus upload jshint test testjs benchjs update-site upload-site check npm debug mingw archive tarball ziparchive testarchive testtarball testziparchive testlib bench apidoc
-all: $(BUILDDIR) $(SRCDIR)/html/html_unescape.h $(SRCDIR)/case_fold_switch.inc
+all: $(BUILDDIR)
@make -C $(BUILDDIR)
check:
@cmake --version > /dev/null || (echo "You need cmake to build this program: http://www.cmake.org/download/" && exit 1)
-$(BUILDDIR): check
+$(BUILDDIR): check $(SRCDIR)/html/html_unescape.h $(SRCDIR)/case_fold_switch.inc man/man1/cmark.1
mkdir -p $(BUILDDIR); \
cd $(BUILDDIR); \
cmake .. -G "$(GENERATOR)" -DCMAKE_BUILD_TYPE=$(BUILD_TYPE)
@@ -71,6 +71,9 @@ clean:
$(PROG): all
+man/man1/cmark.1: man/cmark.1.md
+ mkdir -p man/man1 && pandoc -t man -s $< -o $@
+
apidoc: src/cmark.h
doxygen Doxyfile