From b037b3e8f79f60bef2b9450c2e7c29c2529214db Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 13 Feb 2011 17:30:41 -0800 Subject: Moved upbc -> src/ --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2885430..c7fa864 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ # Other: # * -DUPB_UNALIGNED_READS_OK: makes code smaller, but not standard compliant -.PHONY: all clean tests test benchmarks benchmark descriptorgen +.PHONY: all lib clean tests test benchmarks benchmark descriptorgen # Default rule: just build libupb. all: lib @@ -95,7 +95,7 @@ clean: rm -rf benchmark/google_messages.proto.pb benchmark/google_messages.pb.* benchmarks/b.* benchmarks/*.pb* rm -rf $(TESTS) tests/t.* rm -rf src/descriptor.pb - rm -rf tools/upbc deps + rm -rf src/upbc deps cd lang_ext/python && python setup.py clean --all # Core library (libupb.a). @@ -155,11 +155,13 @@ src/descriptor.pb: src/descriptor.proto # TODO: replace with upbc protoc src/descriptor.proto -osrc/descriptor.pb -descriptorgen: src/descriptor.pb tools/upbc +descriptorgen: src/descriptor.pb src/upbc @# Regenerate descriptor_const.h ./tools/upbc -o src/descriptor src/descriptor.pb cd src && xxd -i descriptor.pb > descriptor.c +src/upbc: src/upbc.c $(LIBUPB) + # Language extensions. python: $(LIBUPB_PIC) cd lang_ext/python && python setup.py build @@ -225,7 +227,7 @@ tests/test_table: tests/test_table.cc tests/tests: src/libupb.a # Tools -tools: tools/upbc +tools: src/upbc tools/upbc: $(LIBUPB) # Benchmarks. ################################################################## -- cgit v1.2.3