]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
programs/Makefile: remove zstd-internal target 596/head
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 9 Mar 2017 02:00:35 +0000 (02:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 9 Mar 2017 22:47:14 +0000 (22:47 +0000)
zstd-internal was intended to be a helper target, but it doesn't help
at all, what it does in practice is a useless rebuild of zstd every time
"make zstd" is invoked.

Fixes: 030ac243a0f3 ("Changed Makefile to generate zstd with .gz support by default")
programs/Makefile

index 5620a25a379995b586e71c6e56f4794f8467109a..a935c744a5c903305382b84a636defb4241d3eed 100644 (file)
@@ -83,8 +83,11 @@ all: zstd
 
 $(ZSTDDECOMP_O): CFLAGS += $(ALIGN_LOOP)
 
-zstd-internal : CPPFLAGS += -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT)
-zstd-internal : $(ZSTDLIB_OBJ) zstdcli.o fileio.o bench.o datagen.o dibio.o
+zstd : CPPFLAGS += $(ZLIBCPP)
+zstd : LDFLAGS += $(ZLIBLD)
+zstd-nogz : HAVE_ZLIB=0
+zstd zstd-nogz : CPPFLAGS += -DZSTD_LEGACY_SUPPORT=$(ZSTD_LEGACY_SUPPORT)
+zstd zstd-nogz : $(ZSTDLIB_OBJ) zstdcli.o fileio.o bench.o datagen.o dibio.o
 ifeq ($(HAVE_ZLIB), 1)
        @echo "==> building zstd with .gz decompression support "
 else
@@ -95,13 +98,6 @@ ifneq (,$(filter Windows%,$(OS)))
 endif
        $(CC) $(FLAGS) $^ $(RES_FILE) -o zstd$(EXT) $(LDFLAGS)
 
-zstd-nogz : HAVE_ZLIB=0
-zstd-nogz : zstd-internal
-
-zstd : CPPFLAGS += $(ZLIBCPP)
-zstd : LDFLAGS += $(ZLIBLD)
-zstd : zstd-internal
-
 zstd-release: DEBUGFLAGS :=
 zstd-release: zstd