]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Fix for EXTRA_RULES_SUBDIRS
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 5 Sep 2008 16:24:00 +0000 (16:24 +0000)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 5 Sep 2008 16:24:00 +0000 (16:24 +0000)
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

index 61b9928eb78f1704253484910187212d137fdd4d..e9c01a8ae0953ddb7c12445efc2b8356096213be 100644 (file)
@@ -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