summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYann Collet <cyan@fb.com>2018-03-09 17:57:29 (GMT)
committerYann Collet <cyan@fb.com>2018-03-09 17:57:29 (GMT)
commit6d4e60e365d1353c9dac46f5bcfa48edfd9ab623 (patch)
treebbc48930766a33b491206678ef30f6e42224d35b /Makefile
parentb5233d3726b416b1176c71483d20b4c543851c6f (diff)
downloadlz4-6d4e60e365d1353c9dac46f5bcfa48edfd9ab623.zip
lz4-6d4e60e365d1353c9dac46f5bcfa48edfd9ab623.tar.gz
lz4-6d4e60e365d1353c9dac46f5bcfa48edfd9ab623.tar.bz2
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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