From 96571ec621e5786e68075d4ba2f017da6d23e762 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 23 Mar 2017 17:18:33 +0100 Subject: [PATCH] build: ensure libnm-core is around before mkenums puts files there It's not sufficient to make nm-core-enum-types.[ch] depend on the dirstamp, because they also depend on their own stamps that are to be placed in libnm-core. $ make libnm-core/nm-core-enum-types.h.stamp GEN libnm-core/nm-core-enum-types.h /bin/sh: libnm-core/nm-core-enum-types.h.tmp: No such file or directory ../../Makefile.glib:107: recipe for target 'libnm-core/nm-core-enum-types.h.stamp' failed make: *** [libnm-core/nm-core-enum-types.h.stamp] Error 1 --- Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index f0e6a3664c..e231049f2f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -517,8 +517,8 @@ nm_core_enum_types_sources = $(libnm_core_lib_h_pub_real) nm_core_enum_types_MKENUMS_C_FLAGS = --identifier-prefix NM --fhead '\#include "nm-default.h"\n' -$(libnm_core_lib_h_pub_mkenums): libnm-core/.dirstamp -$(libnm_core_lib_c_mkenums): libnm-core/.dirstamp +libnm-core/nm-core-enum-types.h.stamp: libnm-core/.dirstamp +libnm-core/nm-core-enum-types.c.stamp: libnm-core/.dirstamp $(dispatcher_libnm_dispatcher_core_la_OBJECTS): $(libnm_core_lib_h_pub_mkenums) $(dispatcher_nm_dispatcher_OBJECTS): $(libnm_core_lib_h_pub_mkenums)