PROTOC_BINARY_PATH = @PROTOC_BINARY_PATH@ build: stage/bin/protoc protobuf/configure: cd protobuf && \ autoreconf -f -i -Wall,no-obsolete && \ rm -rf autom4te.cache config.h.in~ protobuf/Makefile: protobuf/configure cd protobuf && ./configure --prefix=$(shell pwd)/stage --disable-shared stage/bin/protoc: protobuf/Makefile cd protobuf && $(MAKE) install install: stage/bin/protoc mv -f stage/bin/protoc $(PROTOC_BINARY_PATH) clean: -rm -rf stage cd protobuf && $(MAKE) clean