From ca2b61b35db2a27909f00441a559bf7b83ba040b Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 30 Oct 2015 17:36:10 -0400 Subject: Makefile.am: Partially fix out-of-tree builds --- diff --git a/Makefile.am b/Makefile.am index 08de33a..e409348 100644 --- a/Makefile.am +++ b/Makefile.am @@ -22,13 +22,14 @@ sbin_PROGRAMS = firman firman_SOURCES = # Hack to work around Automake's lack of support for linking programs in other # languages. -firman_LDADD = config.sh $(firman_SOURCES) +firman_LDADD = $(firman_SOURCES) firman_LINK = \ set -e; \ + vpath='$(VPATH)'; \ for f in $(firman_LDADD); do \ - $(SH) -n "$${f}"; \ + $(SH) -n "$${vpath}$${vpath:+/}$${f}"; \ done; \ - '$(srcdir)/tools/shld.sh' -I '$(SH)' -o $@ + '$(srcdir)/tools/shld.sh' -I '$(SH)' -o $@ config.sh EXTRA_DIST = \ autogen.sh -- cgit v0.9.1