summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/json/parser/prereq.mk
blob: be7bcb43190e01bca9b1f86744bc177b57052463 (plain)
1
2
3
4
5
6
7
8
9
10
RAGEL = ragel

.SUFFIXES: .rl

.rl.c:
        $(RAGEL) -G2 $<
        $(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \
        -e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' $@

parser.c: