Skip to content

Commit c7477c3

Browse files
committed
Moved Makefile.in under template
1 parent aef3bb3 commit c7477c3

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ before_script:
370370
- ln -s ~/.downloaded-cache
371371
- "> config.status"
372372
- "> .rbconfig.time"
373-
- sed -f tool/prereq.status Makefile.in common.mk > Makefile
373+
- sed -f tool/prereq.status template/Makefile.in common.mk > Makefile
374374
- make touch-unicode-files
375375
- make -s $JOBS $UPDATE_UNICODE up
376376
- make -s $JOBS srcs

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3915,7 +3915,7 @@ AS_CASE([" $CPP "], [*" $CC "*], [CPP=`echo " $CPP " | sed "s| $CC |"' $(CC) |;s
39153915
AS_IF([test x"$firstmf" != x], [
39163916
AC_CONFIG_FILES($firstmf:$firsttmpl, [], [firstmf="$firstmf" firsttmpl="$firsttmpl"])
39173917
])
3918-
AC_CONFIG_FILES(Makefile, [
3918+
AC_CONFIG_FILES(Makefile:template/Makefile.in, [
39193919
tmpmk=confmk$$.tmp
39203920
{
39213921
AS_IF([test ${VCS+set}], [

defs/gmake.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ commit: $(if $(filter commit,$(MAKECMDGOALS)),$(filter-out commit,$(MAKECMDGOALS
150150
+$(Q) \
151151
{ \
152152
$(CHDIR) "$(srcdir)"; \
153-
sed 's/^@.*@$$//;s/@[A-Za-z_][A-Za-z_0-9]*@//g;/^all-incs:/d' defs/gmake.mk Makefile.in; \
153+
sed 's/^@.*@$$//;s/@[A-Za-z_][A-Za-z_0-9]*@//g;/^all-incs:/d' defs/gmake.mk template/Makefile.in; \
154154
sed 's/{[.;]*$$([a-zA-Z0-9_]*)}//g' common.mk; \
155155
} | \
156156
$(MAKE) $(mflags) Q=$(Q) ECHO=$(ECHO) srcdir="$(srcdir)" srcs_vpath="" CHDIR="$(CHDIR)" \

Makefile.in renamed to template/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ install-cross: $(arch)-fake.rb $(RBCONFIG) rbconfig.rb $(arch_hdrdir)/ruby/confi
334334
$(INSTALL_DATA) $(LIBRUBY) $(LIBRUBY_A) $(XRUBY_RUBYLIBDIR)/$(arch)
335335
$(INSTALL_PROGRAM) $(LIBRUBY_SO) $(XRUBY_RUBYLIBDIR)/$(arch)
336336

337-
Makefile: $(srcdir)/enc/Makefile.in
337+
Makefile: $(srcdir)/template/Makefile.in $(srcdir)/enc/Makefile.in
338338

339339
$(MKFILES): config.status $(srcdir)/version.h
340340
@[ -f $@ ] && mv $@ $@.old

tool/make-snapshot

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ def package(vcs, rev, destdir, tmp = nil)
389389
File.open("#{defaults}/ruby.rb", "w") {}
390390
miniruby = ENV['MINIRUBY'] + " -I. -I#{extout} -rcross"
391391
baseruby = ENV["BASERUBY"]
392-
mk = IO.read("Makefile.in").gsub(/^@.*\n/, '')
392+
mk = (IO.read("template/Makefile.in") rescue IO.read("Makefile.in")).
393+
gsub(/^@.*\n/, '')
393394
vars = {
394395
"EXTOUT"=>extout,
395396
"PATH_SEPARATOR"=>File::PATH_SEPARATOR,

0 commit comments

Comments
 (0)