summaryrefslogtreecommitdiff
path: root/ext/ripper/Makefile.dev
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ripper/Makefile.dev')
-rw-r--r--ext/ripper/Makefile.dev18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/ripper/Makefile.dev b/ext/ripper/Makefile.dev
new file mode 100644
index 00000000000..59615e56d67
--- /dev/null
+++ b/ext/ripper/Makefile.dev
@@ -0,0 +1,18 @@
+# Makefile for ripper developpers
+# !!! This file requires GNU make !!!
+
+include Makefile
+
+lib/ripper.rb: $(srcdir)/ripper.rb.in ids1 ids2 $(srcdir)/tools/generate-ripper_rb.rb
+ $(RUBY) $(srcdir)/tools/generate-ripper_rb.rb $(srcdir)/ripper.rb.in ids1 ids2 > $@
+
+test:
+ $(RUBY) test/check-event-arity.rb $(hdrdir)/parse.y
+ sh test/check-event-coverage.sh
+ $(RUBY) test/check-scanner-event-coverage.rb
+ $(RUBY) test/validate.rb > /dev/null
+ @echo OK
+
+preproc: ripper.E
+ripper.E: ripper.c
+ $(CC) -E $(CPPFLAGS) ripper.c | ruby tools/strip.rb > $@