summaryrefslogtreecommitdiff
path: root/ext/ripper/depend
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-19 06:12:35 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-19 06:12:35 +0000
commit70373e2e549d028fe28a6d2303903329e8490c49 (patch)
tree4b9644564001c7981844d9dec75cf0bda79bcb35 /ext/ripper/depend
parentae860f9a569206fff8c1372ef21dc6ac88ad3215 (diff)
* ext/ripper/depend: do not make ripper/core.rb. [ruby-dev:26462]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper/depend')
-rw-r--r--ext/ripper/depend14
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/ripper/depend b/ext/ripper/depend
index ee1d2fd325..2f5cc9f3ea 100644
--- a/ext/ripper/depend
+++ b/ext/ripper/depend
@@ -1,7 +1,6 @@
.SUFFIXES: .y
-common: src rb
-src: ripper.c eventids1.c
-rb: $(srcdir)/lib/ripper/core.rb
+c: ripper.c eventids1.c
+dev: c rb
ripper.o: ripper.c $(hdrdir)/lex.c eventids1.c $(srcdir)/eventids2.c
@@ -20,13 +19,16 @@ ids1: $(srcdir)/tools/list-parse-event-ids.rb $(hdrdir)/parse.y
ids2: $(srcdir)/tools/list-scan-event-ids.rb $(srcdir)/eventids2.c
$(RUBY) $(srcdir)/tools/list-scan-event-ids.rb -a $(srcdir)/eventids2.c > $@
-$(srcdir)/lib/ripper/core.rb: $(srcdir)/lib/ripper/core.rb.in ids1 ids2 $(srcdir)/tools/generate-ripper_rb.rb
- $(RUBY) $(srcdir)/tools/generate-ripper_rb.rb $@.in ids1 ids2 > $@
-
#
# Entries for only ripper developpers: DO NOT USE
#
+# [WARNING]
+# Never make core.rb automatically; it causes line terminator problem.
+# See [ruby-dev:26462]
+rb: $(srcdir)/lib/ripper/core.rb.in ids1 ids2 $(srcdir)/tools/generate-ripper_rb.rb
+ $(RUBY) $(srcdir)/tools/generate-ripper_rb.rb $(srcdir)/lib/ripper/core.rb.in ids1 ids2 > $(srcdir)/lib/ripper/core.rb
+
test:
$(RUBY) test/check-event-arity.rb $(hdrdir)/parse.y
sh test/check-event-coverage.sh