serenity/Ports/sl/patches/0001-Add-an-install-target.patch

25 lines
664 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Gunnar Beutner <gbeutner@serenityos.org>
Date: Thu, 15 Apr 2021 15:43:18 +0200
Subject: [PATCH] Add an install target
Co-Authored-By: Noah Rosamilia <ivoahivoah@gmail.com>
---
Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Makefile b/Makefile
index c3005d2..04fcb9d 100644
--- a/Makefile
+++ b/Makefile
@@ -18,3 +18,9 @@ clean:
rm -f sl
distclean: clean
+
+install: all
+ mkdir -p ${DESTDIR}/usr/local/bin
+ install sl ${DESTDIR}/usr/local/bin/sl
+ mkdir -p ${DESTDIR}/usr/local/share/man/man1
+ gzip -9 -c < sl.1 > ${DESTDIR}/usr/local/share/man/man1/sl.1.gz