commit a834a9bc88be0970f46136cbed45b15f56504127 parent 8c7cf40ed38a3d0374382f3347988ab61d95937f Author: William Casarin <jb55@jb55.com> Date: Mon, 7 Aug 2023 11:25:14 -0700 make: update in preparation for lmdb tests Diffstat:
M | Makefile | | | 14 | ++++++++++---- |
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile @@ -12,7 +12,9 @@ C_BINDINGS_COMMON=bindings/c/flatbuffers_common_builder.h bindings/c/flatbuffers C_BINDINGS=$(C_BINDINGS_COMMON) $(C_BINDINGS_PROFILE) BINDINGS=bindings -all: bench test +lib: bench test + +all: lib bindings bindings: bindings-swift bindings-c @@ -22,7 +24,7 @@ check: test clean: rm -rf test bench bindings -distclean: +distclean: clean rm -rf deps tags: @@ -101,10 +103,14 @@ deps/lmdb/liblmdb.a: deps/lmdb/lmdb.h bench: bench.c $(DEPS) $(CC) $(CFLAGS) bench.c $(LDS) -o $@ -test: test.c $(DEPS) +testdata/db/.dir: + @mkdir -p testdata/db + touch testdata/db/.dir + +test: test.c $(DEPS) testdata/db/.dir $(CC) $(CFLAGS) test.c $(LDS) -o $@ %.o: %.c $(CC) $(CFLAGS) -.PHONY: tags clean distclean +.PHONY: tags clean