From: "Richard W.M. Jones" <rjones(a)redhat.com>
Because the generator subdirectory is cleaned first, and other
directories recurse into the generator directory, 'make distclean'
would fail (because generator/Makefile would be deleted by that
point).
Change subdirs-rules.mk so it doesn't fail if generator/Makefile has
been deleted already.
---
subdir-rules.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/subdir-rules.mk b/subdir-rules.mk
index 0995a74..24eff4f 100644
--- a/subdir-rules.mk
+++ b/subdir-rules.mk
@@ -22,5 +22,5 @@
# generator_built is defined in individual Makefiles
$(generator_built): $(top_builddir)/generator/stamp-generator
$(top_builddir)/generator/stamp-generator: force
- $(MAKE) -C $(top_builddir)/generator stamp-generator
-
+ ! test -f $(top_builddir)/generator/Makefile || \
+ $(MAKE) -C $(top_builddir)/generator stamp-generator
--
1.8.1.4