Only Trigger libzstd.pc Build on Unix-Like Platforms

We don't even define the rule on unsupported platforms.
dev
W. Felix Handte 2020-05-08 16:01:26 -04:00
parent 85801b99d7
commit 87c541c5f9
1 changed files with 3 additions and 1 deletions

View File

@ -187,7 +187,7 @@ default: lib-release
# alias
lib-all: all
all: lib libzstd.pc
all: lib
libzstd.a: ARFLAGS = rcs
libzstd.a: $(ZSTD_OBJ)
@ -253,6 +253,8 @@ clean:
#-----------------------------------------------------------------------------
ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU OpenBSD FreeBSD NetBSD DragonFly SunOS Haiku))
all: libzstd.pc
DESTDIR ?=
# directory variables : GNU conventions prefer lowercase
# see https://www.gnu.org/prep/standards/html_node/Makefile-Conventions.html