aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Cozzette <acozzette@google.com>2016-12-20 10:25:11 -0800
committerBo Yang <teboring@google.com>2016-12-21 13:47:24 -0800
commit2d8a54477fe2d20008a7649599e3bd99419e78d7 (patch)
treeacc62625cf3e321a0d23c586be29ed7a84dfd532
parentf424c715e1c0a26b79bd8c659d0bd8ef214a9980 (diff)
downloadprotobuf-2d8a54477fe2d20008a7649599e3bd99419e78d7.tar.gz
protobuf-2d8a54477fe2d20008a7649599e3bd99419e78d7.tar.bz2
protobuf-2d8a54477fe2d20008a7649599e3bd99419e78d7.zip
Updated Makefile.am to fix out-of-tree builds
-rw-r--r--src/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 7f7c1c90..37204ea0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -495,8 +495,10 @@ js_well_known_types_sources = \
google/protobuf/compiler/js/well_known_types/any.js \
google/protobuf/compiler/js/well_known_types/struct.js \
google/protobuf/compiler/js/well_known_types/timestamp.js
+# We have to cd to $(srcdir) so that out-of-tree builds work properly.
google/protobuf/compiler/js/well_known_types_embed.cc: js_embed$(EXEEXT) $(js_well_known_types_sources)
- ./js_embed$(EXEEXT) $(js_well_known_types_sources) > $@
+ oldpwd=`pwd` && cd $(srcdir) && \
+ $$oldpwd/js_embed$(EXEEXT) $(js_well_known_types_sources) > $$oldpwd/$@
# Tests ==============================================================
@@ -550,6 +552,7 @@ protoc_inputs = \
EXTRA_DIST = \
$(protoc_inputs) \
+ $(js_well_known_types_sources) \
solaris/libstdc++.la \
google/protobuf/io/gzip_stream.h \
google/protobuf/io/gzip_stream_unittest.sh \