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

ruby-changes:47814

From: nobu <ko1@a...>
Date: Sat, 16 Sep 2017 20:50:59 +0900 (JST)
Subject: [ruby-changes:47814] nobu:r59932 (trunk): common.mk: make bin directory

nobu	2017-09-16 20:50:55 +0900 (Sat, 16 Sep 2017)

  New Revision: 59932

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59932

  Log:
    common.mk: make bin directory

  Modified files:
    trunk/Makefile.in
    trunk/common.mk
Index: common.mk
===================================================================
--- common.mk	(revision 59931)
+++ common.mk	(revision 59932)
@@ -777,6 +777,13 @@ $(PLATFORM_D): https://github.com/ruby/ruby/blob/trunk/common.mk#L777
 	$(Q) $(MAKEDIRS) $(PLATFORM_DIR) $(@D)
 	@exit > $@
 
+bin/$(PROGRAM): ruby-runner.c ruby-runner.h $(TIMESTAMPDIR)/.bin.time
+	$(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) -DRUBY_INSTALL_NAME=$(@F) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ $<
+
+$(TIMESTAMPDIR)/.bin.time:
+	$(Q) $(MAKEDIRS) bin $(@D)
+	$(Q) exit > $@
+
 $(BUILTIN_ENCOBJS) $(BUILTIN_TRANSOBJS): $(ENC_TRANS_D)
 
 $(ENC_TRANS_D):
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 59931)
+++ Makefile.in	(revision 59932)
@@ -265,9 +265,6 @@ $(ruby_pc): https://github.com/ruby/ruby/blob/trunk/Makefile.in#L265
 ruby-runner.h: template/ruby-runner.h.in
 		@./config.status --file=$@:$(srcdir)/template/$(@F).in
 
-bin/$(PROGRAM): ruby-runner.c ruby-runner.h
-	$(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) -DRUBY_INSTALL_NAME=$(@F) $(LDFLAGS) $(LIBS) $(OUTFLAG)$@ $<
-
 $(RBCONFIG): $(PREP)
 
 rbconfig.rb: $(RBCONFIG)

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

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