浏览代码

Ensure that headers are generated before libs

This patch makes libs: rule depend on pregen, that way all generated headers
are available before starting to compile. This makes the build process parallel
safe.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Hans-Christian Egtvedt 16 年之前
父节点
当前提交
f35ba0de58
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Makefile.in

+ 5 - 0
Makefile.in

@@ -21,6 +21,11 @@ sub_headers := headers
 
 ifeq ($(HAVE_DOT_CONFIG),y)
 
+# To be able to build the libs rule, we must first have the generated headers.
+# This is needed when locale support is enabled, but also ensures that the
+# build process is parallel safe.
+libs: pregen
+
 all: pregen libs
 
 # In this section, we need .config