summaryrefslogtreecommitdiff
path: root/graphics/urt/patches/patch-az
blob: 008b8ef4a0fc21ac7ff838cbc329c4d8d846c80e (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
26
27
28
$NetBSD: patch-az,v 1.1 2007/05/28 20:14:00 heinz Exp $

  Prepend DESTDIR for staged installation.

--- include/makefile.src.orig	1991-06-07 17:56:22.000000000 +0200
+++ include/makefile.src
@@ -35,8 +35,8 @@ install: $(HDRS)
 	@sh -c "if test 'x$(DEST)' != x ; then \
 		if test 'x$(HDRS)' != x ; then eval \
 			'for hdr in $?; do \
-				echo cp \$$hdr $(DEST)/\$$hdr ; \
-				cp \$$hdr $(DEST)/\$$hdr; \
+				echo cp \$$hdr $(DESTDIR)$(DEST)/\$$hdr ; \
+				cp \$$hdr $(DESTDIR)$(DEST)/\$$hdr; \
 			done' ; \
 		else \
 		    true ; \
@@ -54,8 +54,8 @@ clean:
 pristine:
 	@-if test "x$(DEST)" != x ; then eval \
 		'for hdr in $(HDRS); do \
-			echo rm -f $(DEST)/$$hdr; \
-			rm -f $(DEST)/$$hdr; \
+			echo rm -f $(DESTDIR)$(DEST)/$$hdr; \
+			rm -f $(DESTDIR)$(DEST)/$$hdr; \
 		done' ; \
 	else \
 		true ; \