summaryrefslogtreecommitdiff
path: root/app-admin/cpulimit/files/cpulimit-3.1-makefile.patch
blob: 7daf8a7092ab96595f24b8948fb23b64c4079115 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/Makefile	2023-02-06 18:47:21.311693323 +0300
+++ b/Makefile	2023-02-06 18:48:23.392517904 +0300
@@ -2,6 +2,7 @@
 PREFIX?=/usr
 CFLAGS?=-Wall -O2
 CC?=clang
+DESTDIR=
 
 all: cpulimit
 
@@ -21,10 +22,10 @@
 	$(MAKE) -C test
 
 install: cpulimit
-	mkdir -p ${PREFIX}/bin
-	mkdir -p ${PREFIX}/share/man/man1
-	cp cpulimit ${PREFIX}/bin
-	cp cpulimit.1 ${PREFIX}/share/man/man1
+	mkdir -p ${DESTDIR}/${PREFIX}/bin
+	mkdir -p ${DESTDIR}/${PREFIX}/share/man/man1
+	cp cpulimit ${DESTDIR}/${PREFIX}/bin
+	cp cpulimit.1 ${DESTDIR}/${PREFIX}/share/man/man1
 
 deinstall:
 	rm -f ${PREFIX}/bin/cpulimit