diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 05:00:26 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 05:00:26 +0000 |
| commit | 79dda31740e743e19f10545e6849dee69895c794 (patch) | |
| tree | 58308c38a799308d52410ec93ffe9d2d411468ee /common.mk | |
| parent | 156f7cce93dfecbcd583b07c9b48aed856b63e81 (diff) | |
| download | ruby-79dda31740e743e19f10545e6849dee69895c794.tar.gz ruby-79dda31740e743e19f10545e6849dee69895c794.tar.xz ruby-79dda31740e743e19f10545e6849dee69895c794.zip | |
* common.mk (parse.c): generates parse.h together.
* id.c, id.h: use constants for parser tokens.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'common.mk')
| -rw-r--r-- | common.mk | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -392,10 +392,12 @@ PHONY: {$(VPATH)}parse.c: {$(VPATH)}parse.y $(srcdir)/tool/ytab.sed {$(srcdir)}.y.c: - $(YACC) $(YFLAGS) -o y.tab.c $< + $(YACC) -d $(YFLAGS) -o y.tab.c $< sed -f $(srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new - @$(RM) $@ y.tab.c @$(MV) $@.new $@ + sed -e "/^#/s!y\.tab\.h!$(@:.c=.h)!" y.tab.h > $(@:.c=.h).new + @$(MV) $(@:.c=.h).new $(@:.c=.h) + @$(RM) y.tab.c y.tab.h acosh.$(OBJEXT): {$(VPATH)}acosh.c alloca.$(OBJEXT): {$(VPATH)}alloca.c {$(VPATH)}config.h |
