summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-30 17:36:10 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-30 17:37:52 (EDT)
commitca2b61b35db2a27909f00441a559bf7b83ba040b (patch)
tree354d2412ad5377066e437bac3b2e7d7183ffa8c1
parentf4ccc176b5c3143e218f9da1abd9716ba2befa6e (diff)
downloadfirman.sh-ca2b61b35db2a27909f00441a559bf7b83ba040b.zip
firman.sh-ca2b61b35db2a27909f00441a559bf7b83ba040b.tar.gz
firman.sh-ca2b61b35db2a27909f00441a559bf7b83ba040b.tar.bz2
Makefile.am: Partially fix out-of-tree builds
-rw-r--r--Makefile.am7
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