SHA256
3
0
forked from pool/zstd
zstd/zstd-lib-no-rebuild.patch
Martin Pluskal f3af6e5c41 Accepting request 433541 from home:bmwiedemann
initial package version 1.1.0
  based on https://pbrady.fedorapeople.org/zstd.spec

  now also building for SLE11
  and with proper release and pkgconfig provides

OBS-URL: https://build.opensuse.org/request/show/433541
OBS-URL: https://build.opensuse.org/package/show/Archiving/zstd?expand=0&rev=1
2016-10-06 07:21:35 +00:00

37 lines
1.1 KiB
Diff

From 230e270552e536c6f54774060003e65c5fd47f6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C3=A1draig=20Brady?= <P@draigBrady.com>
Date: Mon, 12 Sep 2016 11:35:26 +0100
Subject: [PATCH] separate build, clean, and installation
This is used in the rpm package to allow building the libs and programs in the %build stage,
and installation separated in the %install stage
---
lib/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/Makefile b/lib/Makefile
index 4fb8ed9..a0be682 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -57,9 +57,9 @@ endif
.PHONY: default all clean install uninstall
-default: clean libzstd
+default: libzstd
-all: clean libzstd
+all: libzstd
libzstd: $(ZSTD_FILES)
@echo compiling static library
@@ -89,7 +89,7 @@ libzstd.pc: libzstd.pc.in
-e 's|@VERSION@|$(VERSION)|' \
$< >$@
-install: libzstd libzstd.pc
+install: libzstd.pc
@install -d -m 755 $(DESTDIR)$(LIBDIR)/pkgconfig/ $(DESTDIR)$(INCLUDEDIR)/
@install -m 755 libzstd.$(SHARED_EXT_VER) $(DESTDIR)$(LIBDIR)/libzstd.$(SHARED_EXT_VER)
@cp -a libzstd.$(SHARED_EXT_MAJOR) $(DESTDIR)$(LIBDIR)