Add regression test for build directory handling to make lint target
[coreboot.git] / Makefile
index 33e35738bb57b57ee4b73be9d519dd69a3569134..5082f7e7290de1e52d6e7e70976a2a618e3b3680 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -176,7 +176,7 @@ includemakefiles= \
        $(foreach class,$(classes), \
                $(eval $(class)-srcs+= \
                        $$(subst $(top)/,, \
-                       $$(abspath $$(addprefix $(dir $(1)),$$($(class)-y)))))) \
+                       $$(abspath $$(subst $(dir $(1))/,/,$$(addprefix $(dir $(1)),$$($(class)-y))))))) \
        $(foreach special,$(special-classes), \
                $(foreach item,$($(special)-y), $(call $(special)-handler,$(dir $(1)),$(item)))) \
        $(eval subdirs+=$$(subst $(CURDIR)/,,$$(abspath $$(addprefix $(dir $(1)),$$(subdirs-y)))))
@@ -237,7 +237,9 @@ printall:
 
 endif
 
+ifndef NOMKDIR
 $(shell mkdir -p $(obj) $(objutil)/kconfig/lxdialog $(additional-dirs) $(alldirs))
+endif
 
 cscope:
        cscope -bR