From 3f427e1845de294f6828055e2d91e4f05e4a6b1c Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 5 Sep 2008 16:24:00 +0000 Subject: [PATCH] Fix for EXTRA_RULES_SUBDIRS EXTRA_RULES_SUBDIRS was sometimes processed after other include directories, which was bad, when the include-pass in the subdirectory needed some tool compiled in EXTRA_RULES_SUBDIRS. Now, all subdirectories have the extra subdir target as dependency, so it is built always first. darcs-hash:20080905162440-f2ef6-8157262677fde3c6bfa96db777666e6da993324f.gz --- snippets/linux | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/snippets/linux b/snippets/linux index 61b9928..e9c01a8 100644 --- a/snippets/linux +++ b/snippets/linux @@ -754,6 +754,12 @@ clean-local: clean-custom fi include-pass-submakes: extra-rules-subdirs + +# We must go to EXTRA_RULES_SUBDIRS beofre going to any other +# directory, since the executables compiled in EXTRA_RULES_SUBDIRS +# might be needed there. +include-pass-this-dir $(foreach subdir,$(SUBDIRS),include-pass-$(subdir)-subdir): extra-rules-subdirs + default: include-pass library-pass binary-pass ifndef OMIT_KERNEL_PASSES # Also make kernel passes if not disabled -- 2.39.2