summaryrefslogtreecommitdiff
path: root/wm/sdorfehs/patches/patch-Makefile
blob: f3fca679d2e714d31eb99a57f5b59c69963c8c3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-Makefile,v 1.1 2021/01/28 22:18:57 pin Exp $

Add support for DESTDIR.

--- Makefile.orig	2021-01-28 21:40:15.668959679 +0000
+++ Makefile
@@ -16,8 +16,8 @@ LDFLAGS+=	`pkg-config --libs ${PKGLIBS}`
 # and this for input-specific debugging
 #CFLAGS+=	-DINPUT_DEBUG=1
 
-BINDIR=		$(PREFIX)/bin
-MANDIR=		$(PREFIX)/man/man1
+BINDIR=		${DESTDIR}$(PREFIX)/bin
+MANDIR=		${DESTDIR}$(PREFIX)/man/man1
 
 SRC!=		ls *.c
 OBJ=		${SRC:.c=.o}