Skip to contentSkip to conversation

Use abs_top_srcdir in place of abs_srcdir

PATCH In review Khem Raj 1 participant 2 messages Apr 5, 2021 – Apr 29, 2021 Kbuild

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 Use abs_top_srcdir in place of abs_srcdir

this makes it build when build dir is outside of sources dir

---
 Makefile.am | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Makefile.am +3 -2
index 644f3556..e3f79901 100644
@@ -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 > $@
 
Signature · 1 line
2.31.1
author
#1 lore raw

ping

Quoted 34 lines · Khem Raj

this makes it build when build dir is outside of sources dir

---
 Makefile.am | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Makefile.am +3 -3
index 644f3556..e3f79901 100644
@@ -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