mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Makefile.in: generate for each makefiles
* Makefile.in (MKFILES): generate for each files for parallel build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e8da08364c
commit
a7d04e536b
1 changed files with 4 additions and 4 deletions
|
@ -258,16 +258,16 @@ install-cross: $(arch)-fake.rb $(RBCONFIG) rbconfig.rb $(arch_hdrdir)/ruby/confi
|
|||
Makefile: $(srcdir)/Makefile.in $(srcdir)/enc/Makefile.in
|
||||
|
||||
$(MKFILES): config.status
|
||||
@[ -f Makefile ] && mv Makefile Makefile.old
|
||||
MAKE=$(MAKE) $(SHELL) ./config.status
|
||||
@cmp Makefile Makefile.old > /dev/null 2>&1 && echo Makefile unchanged && exit 0; \
|
||||
@[ -f $@ ] && mv $@ $@.old
|
||||
MAKE=$(MAKE) $(SHELL) ./config.status $@
|
||||
@cmp $@ $@.old > /dev/null 2>&1 && echo $@ unchanged && exit 0; \
|
||||
{ \
|
||||
echo "all:; -@rm -f conftest.mk"; \
|
||||
echo "conftest.mk: .force; @echo AUTO_REMAKE"; \
|
||||
echo ".force:"; \
|
||||
} > conftest.mk || exit 1; \
|
||||
$(MAKE) -f conftest.mk | grep '^AUTO_REMAKE$$' >/dev/null 2>&1 || \
|
||||
{ echo "Makefile updated, restart."; exit 1; }
|
||||
{ echo "$@ updated, restart."; exit 1; }
|
||||
|
||||
uncommon.mk: $(srcdir)/common.mk
|
||||
sed 's/{\$$([^(){}]*)[^{}]*}//g' $< > $@
|
||||
|
|
Loading…
Reference in a new issue