From 39a32f40c91c306898d771962aab5bd22235554f Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Mon, 25 May 2020 06:50:45 -0700 Subject: [PATCH] fixed default rule for lib/Makefile default rule is `lib-release` `lib-release` wasn't working : it was just skipped. Removing `lib-release` from the list of .PHONY targets fixes it. Same for `lib-mt`. --- lib/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index e6213ac86..c4305d6f8 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -220,13 +220,14 @@ libzstd : $(LIBZSTD) .PHONY: lib lib : libzstd.a libzstd -.PHONY: lib-mt +# note : do not define lib-mt or lib-release as .PHONY +# make does not consider implicit pattern rule for .PHONY target + %-mt : CPPFLAGS += -DZSTD_MULTITHREAD %-mt : LDFLAGS += -pthread %-mt : % @echo multi-threading build completed -.PHONY: lib-release %-release : DEBUGFLAGS := %-release : % @echo release build completed