44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
From a12d866b673972b41802d0fdd20f4e65699da44e Mon Sep 17 00:00:00 2001
|
|
From: Robert Scheck <robert@fedoraproject.org>
|
|
Date: Sun, 29 May 2022 01:34:15 +0200
|
|
Subject: [PATCH] Replace install command with $(INSTALL) variable
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Some Linux distributions prefer to use "INSTALL='install -p'" during 'make
|
|
install' to preserve the original file timestamps when packaging signify.
|
|
|
|
Original author: Robert-André Mauchin
|
|
---
|
|
Makefile | 9 +++++----
|
|
1 file changed, 5 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index 885c58a..425a471 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -11,6 +11,7 @@ PLEDGE ?= noop
|
|
CFLAGS += $(EXTRA_CFLAGS)
|
|
LDFLAGS += $(EXTRA_LDFLAGS)
|
|
CPPFLAGS += -include compat.h
|
|
+INSTALL ?= install
|
|
|
|
S := crypto_api.c \
|
|
mod_ed25519.c \
|
|
@@ -175,10 +176,10 @@ sha512_256hl.c: helper.c
|
|
-e 's/SHA512_256_CTX/SHA2_CTX/g' $< > $@
|
|
|
|
install: signify signify.1.gz
|
|
- install -m 755 -d $(DESTDIR)$(PREFIX)/bin
|
|
- install -m 755 -t $(DESTDIR)$(PREFIX)/bin signify
|
|
- install -m 755 -d $(DESTDIR)$(PREFIX)/share/man/man1
|
|
- install -m 644 -t $(DESTDIR)$(PREFIX)/share/man/man1 signify.1.gz
|
|
+ $(INSTALL) -m 755 -d $(DESTDIR)$(PREFIX)/bin
|
|
+ $(INSTALL) -m 755 -t $(DESTDIR)$(PREFIX)/bin signify
|
|
+ $(INSTALL) -m 755 -d $(DESTDIR)$(PREFIX)/share/man/man1
|
|
+ $(INSTALL) -m 644 -t $(DESTDIR)$(PREFIX)/share/man/man1 signify.1.gz
|
|
|
|
.PHONY: install
|
|
|