37 lines
1.1 KiB
Diff
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)
|