* Makefile.in: use CP and MV macros.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2009-08-22 04:17:38 +00:00
Родитель c89714924c
Коммит 0570b9969b
2 изменённых файлов: 13 добавлений и 9 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Sat Aug 22 13:05:22 2009 NARUSE, Yui <naruse@ruby-lang.org>
* Makefile.in: use CP and MV macros.
Sat Aug 22 01:29:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Sat Aug 22 01:29:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (rm_f, rm_rf): pass the last hash through if exists. * lib/mkmf.rb (rm_f, rm_rf): pass the last hash through if exists.

Просмотреть файл

@ -136,7 +136,7 @@ all:
.NOEXPORT: .NOEXPORT:
miniruby$(EXEEXT): miniruby$(EXEEXT):
@-if test -f $@; then mv -f $@ $@.old; $(RM) $@.old; fi @-if test -f $@; then $(MV) -f $@ $@.old; $(RM) $@.old; fi
$(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(ARCHFILE) $(LIBS) $(OUTFLAG)$@ $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(ARCHFILE) $(LIBS) $(OUTFLAG)$@
$(PROGRAM): $(PROGRAM):
@ -199,13 +199,13 @@ lex.c: defs/keywords
@\ @\
if cmp -s $(srcdir)/defs/lex.c.src $?; then \ if cmp -s $(srcdir)/defs/lex.c.src $?; then \
set -x; \ set -x; \
cp $(srcdir)/lex.c.blt $@; \ $(CP) $(srcdir)/lex.c.blt $@; \
else \ else \
set -x; \ set -x; \
gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && \ gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && \
mv $@.tmp $@ && \ $(MV) $@.tmp $@ && \
cp $? $(srcdir)/defs/lex.c.src && \ $(CP) $? $(srcdir)/defs/lex.c.src && \
cp $@ $(srcdir)/lex.c.blt; \ $(CP) $@ $(srcdir)/lex.c.blt; \
fi fi
NAME2CTYPE_OPTIONS = -7 -c -j1 -i1 -t -C -P -T -H uniname2ctype_hash -Q uniname2ctype_pool -N uniname2ctype_p NAME2CTYPE_OPTIONS = -7 -c -j1 -i1 -t -C -P -T -H uniname2ctype_hash -Q uniname2ctype_pool -N uniname2ctype_p
@ -215,16 +215,16 @@ enc/unicode/name2ctype.h: enc/unicode/name2ctype.kwd
@\ @\
if cmp -s $(?:.kwd=.src) $?; then \ if cmp -s $(?:.kwd=.src) $?; then \
set -x; \ set -x; \
cp $(?:.kwd=.h.blt) $@; \ $(CP) $(?:.kwd=.h.blt) $@; \
else \ else \
trap '$(RM) $@-1.h $@-2.h' 0 && \ trap '$(RM) $@-1.h $@-2.h' 0 && \
set -x; \ set -x; \
sed '/^#ifdef USE_UNICODE_PROPERTIES/,/^#endif/d' $? | gperf $(NAME2CTYPE_OPTIONS) > $@-1.h && \ sed '/^#ifdef USE_UNICODE_PROPERTIES/,/^#endif/d' $? | gperf $(NAME2CTYPE_OPTIONS) > $@-1.h && \
gperf $(NAME2CTYPE_OPTIONS) < $? > $@-2.h && \ gperf $(NAME2CTYPE_OPTIONS) < $? > $@-2.h && \
diff -DUSE_UNICODE_PROPERTIES $@-1.h $@-2.h > $@.tmp; \ diff -DUSE_UNICODE_PROPERTIES $@-1.h $@-2.h > $@.tmp; \
mv $@.tmp $@ && \ $(MV) $@.tmp $@ && \
cp $? $(?:.kwd=.src) && \ $(CP) $? $(?:.kwd=.src) && \
cp $@ $(?:.kwd=.h.blt); \ $(CP) $@ $(?:.kwd=.h.blt); \
fi fi
enc/unicode/name2ctype_prop.h: $(srcdir)/enc/unicode/name2ctype.kwd enc/unicode/name2ctype_prop.h: $(srcdir)/enc/unicode/name2ctype.kwd