- Commit
- 2091909f6aaefea37b8688604262c28c8ea1e7d9
- Parent
- dc31167e9d4053fa000f52163afe74ea9d6fc751
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Revised README with cmake instructions.
My personal build of CMark ✏️
Revised README with cmake instructions.
1 file changed, 25 insertions, 0 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | README.md | 25 | 25 | 0 |
diff --git a/README.md b/README.md @@ -59,6 +59,29 @@ run the tests for `commonmark.js`, do `make testjs`. [The spec]: http://jgm.github.io/CommonMark/spec.html +Installing +---------- + +To install the C program (and shared library), [cmake] is required: + + mkdir build + cd build + cmake .. # optionally: -DCMAKE_INSTALL_PREFIX=path + make # executable will be created as build/src/cmake + make install + +To run tests: + + perl runtests.pl spec.txt build/src/cmark + +To build the javascript library: + + browserify --standalone commonmark js/lib/index.js -o js/commonmark.js + +To run tests: + + node js/test.js + The spec -------- @@ -197,3 +220,5 @@ github issues for questions and possibly open-ended discussions. Use the [github issue tracker](http://github.com/jgm/stmd/issues) only for simple, clear, actionable issues. +[cmake]: http://www.cmake.org/download/ +