OSDN Git Service

Redirect MPC package download requests to OSDN.net
[mingw/mingw-dist.git] / Makefile.comm.in
index f299cb5..201c1db 100644 (file)
@@ -25,7 +25,7 @@
 # MinGW Project, accept liability for any damages, however caused,
 # arising from the use of this software.
 #
-VPATH = ${srcdir}
+VPATH = ${srcdir}:${top_srcdir}:${top_builddir}
 
 # Define hooks for invoking system tools.
 #
@@ -33,6 +33,19 @@ LN_S = @LN_S@
 
 all: all-distfiles
 
+# Capture repository infrastructure changes.  The following rules ensure
+# that configure, config.status, and all working makefiles will be updated,
+# when any of their respective sources are modified.
+#
+configure: configure.ac makeopts.m4
+       cd ${top_srcdir}; autoconf
+
+config.status: configure
+       cd ${top_builddir}; ./config.status --recheck
+
+Makefile: config.status Makefile.in Makefile.stub.in Makefile.comm.in
+       cd ${top_builddir}; ./config.status
+
 # To accommodate a top-level make on just a single subdirectory, we list
 # each of the managed subdirectories as an independent goal, invoking the
 # "all" action for the target subdirectory.
@@ -49,7 +62,7 @@ Makefile.sub: ${srcdir}/*.xml
        for file in $^; do echo "$$file.lzma \\" | sed 's,.*/,  ,' >> $@; done
        echo '  $$(EXTRA_DISTFILES)' >> $@
 
-include Makefile.sub
+sinclude Makefile.sub
 all-distfiles: unpublished issue.sed $(DISTFILES) $(auto-distfiles)
 @SET_MAKE@
 
@@ -128,9 +141,11 @@ unpublished:
 
 # Package lists are dynamically updated, to record the latest issues of each
 # referenced package catalogue; the "sed" script used to accomplish this must
-# be generated, and driven from, within the top build directory.
+# be generated, and driven from, within the top build directory.  Similarly,
+# the procedure for publishing updated catalogues to the file release system
+# must be directed to the top build directory, to process the entire tree.
 #
-update-references issue.sed: FORCE
+published update-references issue.sed: FORCE
        cd ${top_builddir}; $(MAKE) $@
 
 # Requests to update references will be redirected back to each sub-directory
@@ -213,4 +228,11 @@ update-issue-log: FORCE
        sed -n $(extract_log_file_footer) $(issue_log) >> issue.new;
        rm -f $(issue_log) && mv issue.new $(issue_log)
 
+# The following goals may be specified, when building as a sub-project
+# of mingw-get-setup; make each a no-op here.
+#
+NO_OP_GOALS = build.tag dist clean distclean maintainer-clean
+.PHONY: $(NO_OP_GOALS)
+$(NO_OP_GOALS):
+
 # $RCSfile$: end of file