- Commit
- 7df8355125c1cf660093e1ebcf8f52d15423e23e
- Parent
- 2145ef0fe27f1db9a2e6d981df996298d94fbdae
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Re-added check to Makefile.
My personal build of CMark ✏️
Re-added check to Makefile.
1 file changed, 8 insertions, 5 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | Makefile | 13 | 8 | 5 |
diff --git a/Makefile b/Makefile @@ -13,21 +13,24 @@ SPECVERSION=$(shell grep version: $(SPEC) | sed -e 's/version: *//') .PHONY: all spec leakcheck clean fuzztest dingus upload jshint test testjs benchjs update-site upload-site check npm debug tarball all: $(BUILDDIR) - @cmake --build $(BUILDDIR) || (echo "You need cmake to build this program: http://www.cmake.org/download/" && exit 1) + @make -C $(BUILDDIR) -install: $(BUILDDIR) man/man1/cmark.1 - cmake --build $(BUILDDIR) --target install +check: + @cmake --version > /dev/null || (echo "You need cmake to build this program: http://www.cmake.org/download/" && exit 1) -$(BUILDDIR): +$(BUILDDIR): check mkdir -p $(BUILDDIR); \ cd $(BUILDDIR); \ cmake .. -DCMAKE_BUILD_TYPE=$(BUILD_TYPE) +install: $(BUILDDIR) man/man1/cmark.1 + make -p $(BUILDDIR) --target install + debug: mkdir -p $(BUILDDIR); \ cd $(BUILDDIR); \ cmake .. -DCMAKE_BUILD_TYPE=Debug; \ - cmake --build . + make tarball: spec.html rm -rf $(PKGDIR); \