From fc68ece8d22b203a7c430854bd0b63f3ea41b91a Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 13 Apr 2016 14:32:11 -0500 Subject: [PATCH] build: Make sure linux/kdbus.h is copied --- Makefile.am | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 70de7f7e..686f7907 100644 --- a/Makefile.am +++ b/Makefile.am @@ -5,7 +5,7 @@ ACLOCAL_AMFLAGS = -I build-aux noinst_LTLIBRARIES = ell/libell-internal.la -ell_sources = ell/ell.h ell/private.h ell/missing.h linux/kdbus.h \ +ell_sources = ell/ell.h ell/private.h ell/missing.h \ ell/util.h ell/util.c \ ell/test.h ell/test.c \ ell/queue.h ell/queue.c \ @@ -49,7 +49,9 @@ ell_sources = ell/ell.h ell/private.h ell/missing.h linux/kdbus.h \ ell/uuid.h ell/uuid.c \ ell/key.h ell/key.c -ell_libell_internal_la_SOURCES = $(ell_sources) +ell_linux_headers = linux/kdbus.h + +ell_libell_internal_la_SOURCES = $(ell_sources) $(ell_linux_headers) bin_PROGRAMS = src/iwd client/iwctl monitor/iwmon @@ -199,6 +201,12 @@ ell/internal: Makefile $(LN_S) -t ell -f $(abs_srcdir)/../ell/$$f ; \ fi \ done > $@ + $(AM_V_at)$(MKDIR_P) linux + $(AM_V_GEN)for f in $(ell_linux_headers) ; do \ + if [ ! -f $$f ] ; then \ + $(LN_S) -t linux -f $(abs_srcdir)/../ell/$$f ; \ + fi \ + done > $@ ell/unit/test_data: Makefile $(AM_V_at)$(MKDIR_P) ell/unit