[前][次][番号順一覧][スレッド一覧]

ruby-changes:25749

From: usa <ko1@a...>
Date: Thu, 22 Nov 2012 21:50:10 +0900 (JST)
Subject: [ruby-changes:25749] usa:r37806 (trunk): * common.mk, win32/Makefile.sub (probes.dmyh): now be made in current

usa	2012-11-22 21:49:59 +0900 (Thu, 22 Nov 2012)

  New Revision: 37806

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37806

  Log:
    * common.mk, win32/Makefile.sub (probes.dmyh): now be made in current
      (=build) directory if build from the repository.

  Modified files:
    trunk/ChangeLog
    trunk/common.mk
    trunk/win32/Makefile.sub

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 37805)
+++ ChangeLog	(revision 37806)
@@ -1,3 +1,8 @@
+Thu Nov 22 21:48:48 2012  NAKAMURA Usaku  <usa@r...>
+
+	* common.mk, win32/Makefile.sub (probes.dmyh): now be made in current
+	  (=build) directory if build from the repository.
+
 Thu Nov 22 21:34:51 2012  Tadayoshi Funaba  <tadf@d...>
 
 	* test/ruby/test_rubyoptions.rb: added a test.
Index: common.mk
===================================================================
--- common.mk	(revision 37805)
+++ common.mk	(revision 37806)
@@ -855,7 +855,7 @@
 
 all-incs: incs
 incs: $(INSNS) {$(VPATH)}node_name.inc {$(VPATH)}encdb.h {$(VPATH)}transdb.h {$(VPATH)}known_errors.inc \
-      $(srcdir)/revision.h $(REVISION_H) enc/unicode/name2ctype.h {$(VPATH)}id.h $(srcdir)/probes.dmyh
+      $(srcdir)/revision.h $(REVISION_H) enc/unicode/name2ctype.h {$(VPATH)}id.h {$(VPATH)}probes.dmyh
 
 insns: $(INSNS)
 
@@ -896,10 +896,10 @@
 	$(ECHO) generating $@
 	$(Q) $(COMPILE_PRELUDE) $(srcdir)/golf_prelude.rb $@
 
-$(srcdir)/probes.dmyh: {$(srcdir)}probes.d $(srcdir)/tool/gen_dummy_probes.rb
+probes.dmyh: {$(srcdir)}probes.d $(srcdir)/tool/gen_dummy_probes.rb
 	$(BASERUBY) $(srcdir)/tool/gen_dummy_probes.rb $(srcdir)/probes.d > $@
 
-probes.h: $(srcdir)/probes.$(DTRACE_EXT)
+probes.h: {$(VPATH)}probes.$(DTRACE_EXT)
 
 prereq: incs srcs preludes PHONY
 
Index: win32/Makefile.sub
===================================================================
--- win32/Makefile.sub	(revision 37805)
+++ win32/Makefile.sub	(revision 37806)
@@ -1067,10 +1067,15 @@
 	$(ECHO) compiling ext/extinit.c
 	$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c ext/extinit.c
 
-probes.h: {$(srcdir)}probes.dmyh
+probes.h: {$(VPATH)}probes.dmyh
 	@$(ECHO) copying dummy $(DEST_FILE)
-	$(Q) $(CP) $(srcdir:/=\)\probes.dmyh $(OS_DEST_FILE)
+	@if exist probes.dmyh (\
+	  $(Q) $(CP) probes.dmyh $(OS_DEST_FILE)\
+	) else (\
+	  $(Q) $(CP) $(srcdir:/=\)\probes.dmyh $(OS_DEST_FILE)\
+	)
 
+
 INSNS	= opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
 	  vmtc.inc vm.inc
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]