зеркало из https://github.com/github/ruby.git
* configure.in (gnumake): check for GNU make.
* Makefile.in (uncommon.mk): includes filtered common.mk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0d8df88893
Коммит
a91845f5b3
|
@ -1,4 +1,8 @@
|
||||||
Thu Aug 14 11:45:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Aug 14 12:01:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* configure.in (gnumake): check for GNU make.
|
||||||
|
|
||||||
|
* Makefile.in (uncommon.mk): includes filtered common.mk.
|
||||||
|
|
||||||
* common.mk (parse.h): workaround for nmake.
|
* common.mk (parse.h): workaround for nmake.
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,7 @@ fake.rb: Makefile
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in $(srcdir)/enc/Makefile.in
|
Makefile: $(srcdir)/Makefile.in $(srcdir)/enc/Makefile.in
|
||||||
|
|
||||||
$(MKFILES): config.status $(srcdir)/common.mk
|
$(MKFILES): config.status
|
||||||
MAKE=$(MAKE) $(SHELL) ./config.status
|
MAKE=$(MAKE) $(SHELL) ./config.status
|
||||||
@{ \
|
@{ \
|
||||||
echo "all:; -@rm -f conftest.mk"; \
|
echo "all:; -@rm -f conftest.mk"; \
|
||||||
|
@ -168,6 +168,9 @@ $(MKFILES): config.status $(srcdir)/common.mk
|
||||||
$(MAKE) -f conftest.mk | grep '^AUTO_REMAKE$$' >/dev/null 2>&1 || \
|
$(MAKE) -f conftest.mk | grep '^AUTO_REMAKE$$' >/dev/null 2>&1 || \
|
||||||
{ echo "Makefile updated, restart."; exit 1; }
|
{ echo "Makefile updated, restart."; exit 1; }
|
||||||
|
|
||||||
|
uncommon.mk: $(srcdir)/common.mk
|
||||||
|
sed 's/{\$$([^(){}]*)[^{}]*}//g' $< > $@
|
||||||
|
|
||||||
config.status: $(srcdir)/configure $(srcdir)/enc/Makefile.in
|
config.status: $(srcdir)/configure $(srcdir)/enc/Makefile.in
|
||||||
MINIRUBY="$(MINIRUBY)" $(SHELL) ./config.status --recheck
|
MINIRUBY="$(MINIRUBY)" $(SHELL) ./config.status --recheck
|
||||||
|
|
||||||
|
|
37
configure.in
37
configure.in
|
@ -1849,13 +1849,39 @@ case "$target_os" in
|
||||||
esac
|
esac
|
||||||
MINIDLNOBJ=dmydln.o
|
MINIDLNOBJ=dmydln.o
|
||||||
;;
|
;;
|
||||||
|
*msdosdjgpp*)
|
||||||
|
FIRSTMAKEFILE=GNUmakefile:djgpp/GNUmakefile.in
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
MINIOBJS="$MINIDLNOBJ"
|
MINIOBJS="$MINIDLNOBJ"
|
||||||
|
|
||||||
case "$build_os" in
|
case "$FIRSTMAKEFILE" in
|
||||||
*msdosdjgpp*) FIRSTMAKEFILE=GNUmakefile:djgpp/GNUmakefile.in;;
|
dnl (
|
||||||
|
*GNUmakefile:*)
|
||||||
|
gnumake=yes
|
||||||
|
;;
|
||||||
|
dnl (
|
||||||
|
*)
|
||||||
|
AC_MSG_CHECKING([for if ${MAKE-make} is GNU make])
|
||||||
|
mkdir conftest.dir
|
||||||
|
echo "all:; @echo yes" > conftest.dir/GNUmakefile
|
||||||
|
echo "all:; @echo no" > conftest.dir/Makefile
|
||||||
|
gnumake=`(cd conftest.dir; ${MAKE-make})`
|
||||||
|
rm -fr conftest.dir
|
||||||
|
case "$gnumake" in
|
||||||
|
dnl (
|
||||||
|
*yes*)
|
||||||
|
echo "include Makefile" > GNUmakefile
|
||||||
|
echo "include uncommon.mk" >> GNUmakefile
|
||||||
|
gnumake=yes;;
|
||||||
|
dnl (
|
||||||
|
*)
|
||||||
|
gnumake=no;;
|
||||||
|
esac
|
||||||
|
AC_MSG_RESULT($gnumake)
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS "'$(DEFS)'
|
CPPFLAGS="$CPPFLAGS "'$(DEFS)'
|
||||||
|
@ -2069,7 +2095,10 @@ AC_CONFIG_FILES(Makefile, [{
|
||||||
sed '/^MISSING/s/\$U\././g' Makefile
|
sed '/^MISSING/s/\$U\././g' Makefile
|
||||||
echo; test x"$EXEEXT" = x || echo 'miniruby: miniruby$(EXEEXT)'
|
echo; test x"$EXEEXT" = x || echo 'miniruby: miniruby$(EXEEXT)'
|
||||||
test "$RUBY_INSTALL_NAME$EXEEXT" = ruby || echo 'ruby: $(PROGRAM);'
|
test "$RUBY_INSTALL_NAME$EXEEXT" = ruby || echo 'ruby: $(PROGRAM);'
|
||||||
sed ['s/{\$([^(){}]*)[^{}]*}//g'] ${srcdir}/common.mk
|
if test "$gnumake" != yes; then
|
||||||
|
echo ['$(MKFILES): $(srcdir)/common.mk']
|
||||||
|
sed ['s/{\$([^(){}]*)[^{}]*}//g'] ${srcdir}/common.mk
|
||||||
|
fi
|
||||||
} >> confmk$$.tmp && mv -f confmk$$.tmp Makefile],
|
} >> confmk$$.tmp && mv -f confmk$$.tmp Makefile],
|
||||||
[RUBY_INSTALL_NAME=$RUBY_INSTALL_NAME EXEEXT=$EXEEXT])
|
[RUBY_INSTALL_NAME=$RUBY_INSTALL_NAME EXEEXT=$EXEEXT gnumake=$gnumake])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
include Makefile
|
include Makefile
|
||||||
|
include uncommon.mk
|
||||||
|
|
||||||
ENABLE_SHARED=@ENABLE_SHARED@
|
ENABLE_SHARED=@ENABLE_SHARED@
|
||||||
DLLWRAP = @DLLWRAP@ --target=@target_os@
|
DLLWRAP = @DLLWRAP@ --target=@target_os@
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
include Makefile
|
include Makefile
|
||||||
VPATH = $(srcdir) $(srcdir)/missing
|
VPATH = $(srcdir) $(srcdir)/missing
|
||||||
|
include uncommon.mk
|
||||||
|
|
Загрузка…
Ссылка в новой задаче