diff --git a/Makefile b/Makefile index ae86f2cf68..3ab4929def 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ dist: print_environment translator_dist jre_emul_dist junit_dist jsr305_dist \ protobuf_dist: protobuf_compiler_dist protobuf_runtime_dist -all_dist: dist all_frameworks +all_dist: dist all_frameworks examples_dist clean: @rm -rf $(BUILD_DIR) $(DIST_DIR) @@ -113,6 +113,17 @@ test_protobuf: junit_dist protobuf_compiler_dist protobuf_runtime_dist test_all: test test_protobuf +examples_dist: copy_examples fix_dist_references + +copy_examples: + @cp -r examples $(DIST_DIR) + +fix_dist_references: + @sed -i '' 's/\/dist//' $(DIST_DIR)/examples/Hello/Hello.xcconfig + @sed -i '' 's/\/dist//' $(DIST_DIR)/examples/protobuf/Makefile + @sed -i '' 's/\/..\/../' \ + $(DIST_DIR)/examples/Contacts/WORKSPACE + print_environment: @echo Locale: $${LANG} @echo `uname -a` diff --git a/examples/Contacts/WORKSPACE b/examples/Contacts/WORKSPACE index b835b3c4b3..0712b488c9 100644 --- a/examples/Contacts/WORKSPACE +++ b/examples/Contacts/WORKSPACE @@ -13,7 +13,7 @@ git_repository( name = "build_bazel_rules_apple", remote = "https://github.com/bazelbuild/rules_apple.git", - tag = "0.0.1", + tag = "0.2.0", ) local_repository(