mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
37 lines
881 B
Diff
37 lines
881 B
Diff
Patch-Source: https://github.com/vtjnash/libwhich/pull/18
|
|
--
|
|
From 969dc971df739d4a64e96ebf8423f372967fdb6c Mon Sep 17 00:00:00 2001
|
|
From: Jakub Jirutka <jakub@jirutka.cz>
|
|
Date: Sat, 21 May 2022 23:59:20 +0200
|
|
Subject: [PATCH] add make install
|
|
|
|
Resolves #10
|
|
---
|
|
Makefile | 11 ++++++++++-
|
|
1 file changed, 10 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Makefile b/Makefile
|
|
index 4297cf2..5314924 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1,5 +1,10 @@
|
|
default: libwhich
|
|
|
|
+prefix := /usr
|
|
+bindir := $(prefix)/bin
|
|
+
|
|
+INSTALL := install
|
|
+
|
|
TARGET = $(shell uname)
|
|
override CFLAGS := -Wall -pedantic -O2 $(CFLAGS)
|
|
override LDFLAGS := $(LDFLAGS)
|
|
@@ -36,4 +41,8 @@ clean:
|
|
check: libwhich
|
|
./test-libwhich.sh
|
|
|
|
-.PHONY: clean check default
|
|
+install: libwhich
|
|
+ mkdir -p $(DESTDIR)$(bindir)
|
|
+ $(INSTALL) -m755 libwhich $(DESTDIR)$(bindir)/libwhich
|
|
+
|
|
+.PHONY: clean check default install
|