diff options
author | Peter Palfrader <peter@palfrader.org> | 2011-09-07 18:04:45 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-11-24 23:56:01 -0500 |
commit | 86be8fcf0a1d979c50452d681e5090418d444987 (patch) | |
tree | 664d5880b6a6df9b26c52bf6015de70425d5812d /src/common | |
parent | 916aa8022d8bafac86966b71fb5b43f20cf91ccd (diff) | |
download | tor-86be8fcf0a1d979c50452d681e5090418d444987.tar.gz tor-86be8fcf0a1d979c50452d681e5090418d444987.zip |
Handle build-trees better.
Properly create git revision and source file sha1sums include files when
building tor not in its source tree but in a dedicated build tree.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/Makefile.am | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Makefile.am b/src/common/Makefile.am index 2244fe58d3..2920e73d2e 100644 --- a/src/common/Makefile.am +++ b/src/common/Makefile.am @@ -56,9 +56,9 @@ noinst_HEADERS = \ common_sha1.i: $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS) if test "@SHA1SUM@" != none; then \ - @SHA1SUM@ $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS) | @SED@ -n 's/^\(.*\)$$/"\1\\n"/p' > common_sha1.i; \ + (cd "$(srcdir)" && @SHA1SUM@ $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS)) | @SED@ -n 's/^\(.*\)$$/"\1\\n"/p' > common_sha1.i; \ elif test "@OPENSSL@" != none; then \ - @OPENSSL@ sha1 $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS) | @SED@ -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > common_sha1.i; \ + (cd "$(srcdir)" && @OPENSSL@ sha1 $(libor_SOURCES) $(libor_crypto_a_SOURCES) $(noinst_HEADERS)) | @SED@ -n 's/SHA1(\(.*\))= \(.*\)/"\2 \1\\n"/p' > common_sha1.i; \ else \ rm common_sha1.i; \ touch common_sha1.i; \ |