this makes it build when build dir is outside of sources dir
---
Makefile.am | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 644f3556..e3f79901 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -625,9 +625,10 @@ unit/tls-settings.8021x: unit/cert-ca.pem unit/cert-client.pem
unit/cert-client-
BUILT_SOURCES = $(ell_built_sources) src/builtin.h
ell/shared: Makefile
+ $(AM_V_at)$(MKDIR_P) ell
$(AM_V_GEN)for f in $(ell_shared) ; do \
if [ ! -f $$f ] ; then \
- $(LN_S) -t ell -f $(abs_srcdir)/../ell/$$f ; \
+ $(LN_S) -t ell -f $(abs_top_srcdir)/ell/$$f ; \
fi \
done > $@
@@ -635,7 +636,7 @@ ell/internal: Makefile
$(AM_V_at)$(MKDIR_P) ell
$(AM_V_GEN)for f in $(ell_headers) $(ell_sources) ; do \
if [ ! -f $$f ] ; then \
- $(LN_S) -t ell -f $(abs_srcdir)/../ell/$$f ; \
+ $(LN_S) -t ell -f $(abs_top_srcdir)/ell/$$f ; \
fi \
done > $@
--
2.31.1
Show replies by date
ping
On Mon, Apr 5, 2021 at 2:33 PM Khem Raj <raj.khem(a)gmail.com> wrote:
>
> this makes it build when build dir is outside of sources dir
> ---
> Makefile.am | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index 644f3556..e3f79901 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -625,9 +625,10 @@ unit/tls-settings.8021x: unit/cert-ca.pem unit/cert-client.pem
unit/cert-client-
> BUILT_SOURCES = $(ell_built_sources) src/builtin.h
>
> ell/shared: Makefile
> + $(AM_V_at)$(MKDIR_P) ell
> $(AM_V_GEN)for f in $(ell_shared) ; do \
> if [ ! -f $$f ] ; then \
> - $(LN_S) -t ell -f $(abs_srcdir)/../ell/$$f ; \
> + $(LN_S) -t ell -f $(abs_top_srcdir)/ell/$$f ; \
> fi \
> done > $@
>
> @@ -635,7 +636,7 @@ ell/internal: Makefile
> $(AM_V_at)$(MKDIR_P) ell
> $(AM_V_GEN)for f in $(ell_headers) $(ell_sources) ; do \
> if [ ! -f $$f ] ; then \
> - $(LN_S) -t ell -f $(abs_srcdir)/../ell/$$f ; \
> + $(LN_S) -t ell -f $(abs_top_srcdir)/ell/$$f ; \
> fi \
> done > $@
>
> --
> 2.31.1
>