blob: 04aeac914da07670625d711ea39494d4edba4709 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
RAGEL = ragel
.SUFFIXES: .rl
.rl.c:
$(RAGEL) -G2 $<
$(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
-e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' \
-e '$$header ||= $$_ = "/* This file is automatically generated from parser.rl by using ragel */" + $$_' $@
parser.c:
|