Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
b9c3b8d6
Commit
b9c3b8d6
authored
Mar 20, 2017
by
Krzysztof Woś
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exit with an error if re2c is not available
Instead of overwriting src/json.hpp with an empty file
parent
86579209
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Makefile
Makefile
+4
-1
No files found.
Makefile
View file @
b9c3b8d6
.PHONY
:
pretty clean ChangeLog.md
.PHONY
:
pretty clean ChangeLog.md
# used programs
# used programs
RE2C
=
re2c
RE2C
:=
$(
shell
command
-v
re2c 2> /dev/null
)
SED
=
sed
SED
=
sed
# main target
# main target
...
@@ -185,6 +185,9 @@ clang_sanitize: clean
...
@@ -185,6 +185,9 @@ clang_sanitize: clean
# create scanner with re2c
# create scanner with re2c
re2c
:
src/json.hpp.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
$(RE2C)
-W
--utf-8
--encoding-policy
fail
--bit-vectors
--nested-ifs
--no-debug-info
$<
|
$(SED)
'1d'
>
src/json.hpp
# pretty printer
# pretty printer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment