提交 b9c3b8d6 编写于 作者: K Krzysztof Woś

Exit with an error if re2c is not available

Instead of overwriting src/json.hpp with an empty file
上级 86579209
.PHONY: pretty clean ChangeLog.md
# used programs
RE2C = re2c
RE2C := $(shell command -v re2c 2> /dev/null)
SED = sed
# main target
......@@ -185,6 +185,9 @@ clang_sanitize: clean
# create scanner with re2c
re2c: src/json.hpp.re2c
ifndef RE2C
$(error "re2c is not available, please install re2c")
endif
$(RE2C) -W --utf-8 --encoding-policy fail --bit-vectors --nested-ifs --no-debug-info $< | $(SED) '1d' > src/json.hpp
# pretty printer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册