]> rtime.felk.cvut.cz Git - omk.git/blobdiff - snippets/linux
Fix for EXTRA_RULES_SUBDIRS
[omk.git] / 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