You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2007/01/05 20:09:11 UTC

svn commit: r493140 - /incubator/qpid/trunk/qpid/cpp/gen/Makefile.am

Author: aconway
Date: Fri Jan  5 11:09:10 2007
New Revision: 493140

URL: http://svn.apache.org/viewvc?view=rev&rev=493140
Log:
2007-01-05  Jim Meyering  <me...@redhat.com>

	* gen/Makefile.am (gen-src.mk) [CAN_GENERATE_CODE]: Emit an empty
	dependency for each generated file, in case they are renamed,
        removed, or no longer generated.  Otherwise, "./bootstrap --build"
        would fail with e.g., `*** No rule to make target
	../../gentools/templ.cpp/AMQP_HighestVersion.cpp.tmpl'.

Modified:
    incubator/qpid/trunk/qpid/cpp/gen/Makefile.am

Modified: incubator/qpid/trunk/qpid/cpp/gen/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/gen/Makefile.am?view=diff&rev=493140&r1=493139&r2=493140
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/gen/Makefile.am (original)
+++ incubator/qpid/trunk/qpid/cpp/gen/Makefile.am Fri Jan  5 11:09:10 2007
@@ -11,7 +11,7 @@
 # Don't attempt to run the code generator unless configure has set
 # CAN_GENERATE_CODE, indicating that the amqp.xml and tools needed
 # to run the code generator are available.
-# 
+#
 if CAN_GENERATE_CODE
 
 gentools_dir = $(srcdir)/../../gentools
@@ -40,6 +40,11 @@
 	  echo 'cxx_templates = '\\					\
 	    && find $(gentools_dir)/templ.cpp -name '*.tmpl'		\
 		| sort -u | sed 's/.*/  & \\/;$$s/ \\//';		\
+	  echo '# Empty rules, in case any of these files is removed,';	\
+	  echo '# renamed, or no longer generated.';			\
+	  echo '$$(spec):';						\
+	  echo '$$(java_sources):';					\
+	  echo '$$(cxx_templates):';					\
 	  echo endif							\
 	) >> $@-t
 	mv $@-t $@