aboutsummaryrefslogtreecommitdiff
path: root/src/common/include.am
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-09-06 09:56:48 -0400
committerNick Mathewson <nickm@torproject.org>2012-09-06 09:56:48 -0400
commit91fed2c7037acf3f154ab0a4a536bc1579c1ccfa (patch)
tree656142b196f1290d0b43b971502c0e2dfff625d0 /src/common/include.am
parent5d679caa32c71a8bc7d4ed4ab716349e603e642c (diff)
downloadtor-91fed2c7037acf3f154ab0a4a536bc1579c1ccfa.tar.gz
tor-91fed2c7037acf3f154ab0a4a536bc1579c1ccfa.zip
Fix a build-warning when building out-of-tree
We were trying to incorporate all headers in common_sha1.i, not just the src/common ones. This is part of bug 6778; fix on 0.2.4.1-alpha
Diffstat (limited to 'src/common/include.am')
-rw-r--r--src/common/include.am10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/include.am b/src/common/include.am
index 0ab4769847..c6fde42781 100644
--- a/src/common/include.am
+++ b/src/common/include.am
@@ -36,7 +36,7 @@ src_common_libor_crypto_a_SOURCES = \
src_common_libor_event_a_SOURCES = src/common/compat_libevent.c
-noinst_HEADERS+= \
+COMMONHEADERS = \
src/common/address.h \
src/common/aes.h \
src/common/ciphers.inc \
@@ -57,13 +57,15 @@ noinst_HEADERS+= \
src/common/tortls.h \
src/common/util.h
+noinst_HEADERS+= $(COMMONHEADERS)
+
DISTCLEANFILES+= src/common/common_sha1.i
-src/common/common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS)
+src/common/common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(COMMONHEADERS)
$(AM_V_GEN)if test "@SHA1SUM@" != none; then \
- (cd "$(srcdir)" && "@SHA1SUM@" $(src_common_libor_SOURCES) $(src_common_libor_crypto_a_SOURCES) $(noinst_HEADERS)) | "@SED@" -n 's/^\(.*\)$$/"\1\\n"/p' > $@; \
+ (cd "$(srcdir)" && "@SHA1SUM@" $(src_common_libor_SOURCES) $(src_common_libor_crypto_a_SOURCES) $(COMMONHEADERS)) | "@SED@" -n 's/^\(.*\)$$/"\1\\n"/p' > $@; \
elif test "@OPENSSL@" != none; then \
- (cd "$(srcdir)" && "@OPENSSL@" sha1 $(src_common_libor_SOURCES) $(src_Common_libor_crypto_a_SOURCES) $(noinst_HEADERS)) | "@SED@" -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > $@; \
+ (cd "$(srcdir)" && "@OPENSSL@" sha1 $(src_common_libor_SOURCES) $(src_Common_libor_crypto_a_SOURCES) $(COMMONHEADERS)) | "@SED@" -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > $@; \
else \
rm $@; \
touch $@; \