diff options
Diffstat (limited to 'jni/ruby/ext/json/parser/prereq.mk')
-rw-r--r-- | jni/ruby/ext/json/parser/prereq.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jni/ruby/ext/json/parser/prereq.mk b/jni/ruby/ext/json/parser/prereq.mk new file mode 100644 index 0000000..be7bcb4 --- /dev/null +++ b/jni/ruby/ext/json/parser/prereq.mk @@ -0,0 +1,10 @@ +RAGEL = ragel + +.SUFFIXES: .rl + +.rl.c: + $(RAGEL) -G2 $< + $(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' \ + -e '$$_.sub!(/^static const int (JSON_.*=.*);$$/, "enum {\\1};")' $@ + +parser.c: |