From 6d4e60e365d1353c9dac46f5bcfa48edfd9ab623 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Fri, 9 Mar 2018 09:57:29 -0800 Subject: fix #481: ensure liblz4.a dependency for `make all` `make all` will trigger several sub-directory makefiles. several of them need `liblz4.a`. When built with `-j#`, there are several concurrent liblz4.a built Make liblz4.a a dependency, which is built once, before moving to sub-directory Makefiles --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8a7d155..ff84d6d 100644 --- a/Makefile +++ b/Makefile @@ -56,6 +56,7 @@ all: allmost manuals allmost: lib lz4 examples .PHONY: lib lib-release liblz4.a +lib: liblz4.a lib lib-release liblz4.a: @$(MAKE) -C $(LZ4DIR) $@ @@ -67,7 +68,7 @@ lz4 lz4-release : @cp $(PRGDIR)/lz4$(EXT) . .PHONY: examples -examples: +examples: liblz4.a $(MAKE) -C $(EXDIR) all .PHONY: manuals -- cgit v0.12