ext/json/parser/prereq.mk: Add a "automatically generated" header
to parser.c.
This commit is contained in:
parent
076d3d758b
commit
5717e55e9a
@ -1,3 +1,4 @@
|
|||||||
|
/* This file is automatically generated from parser.rl by using ragel */
|
||||||
|
|
||||||
#line 1 "parser.rl"
|
#line 1 "parser.rl"
|
||||||
#include "../fbuffer/fbuffer.h"
|
#include "../fbuffer/fbuffer.h"
|
||||||
|
@ -5,6 +5,7 @@ RAGEL = ragel
|
|||||||
.rl.c:
|
.rl.c:
|
||||||
$(RAGEL) -G2 $<
|
$(RAGEL) -G2 $<
|
||||||
$(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
|
$(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
|
||||||
-e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' $@
|
-e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' \
|
||||||
|
-e '$$header ||= $$_ = "/* This file is automatically generated from parser.rl by using ragel */\n" + $$_' $@
|
||||||
|
|
||||||
parser.c:
|
parser.c:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user