diff options
-rw-r--r-- | Makefile.am | 7 |
1 files changed, 4 insertions, 3 deletions
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 |