]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed default rule for lib/Makefile 2176/head
authorYann Collet <cyan@fb.com>
Mon, 25 May 2020 13:50:45 +0000 (06:50 -0700)
committerYann Collet <cyan@fb.com>
Mon, 25 May 2020 13:50:45 +0000 (06:50 -0700)
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

index e6213ac8600457cebbb38fc2f893d6550e987906..c4305d6f897621f0cdda7714c26a95a3d335b383 100644 (file)
@@ -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