summaryrefslogtreecommitdiff
path: root/net/ucspi-udp/patches/patch-Makefile
blob: 59d54ab4dfe1c412ec27af31ae9eff96c64d6d76 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-Makefile,v 1.1 2021/11/15 10:08:17 schmonz Exp $

DESTDIR support.

--- Makefile.orig	2016-03-29 19:44:38.000000000 +0000
+++ Makefile
@@ -21,6 +21,14 @@ auto-str.o: \
 compile auto-str.c buffer.h readwrite.h exit.h
 	./compile auto-str.c
 
+auto_destdir.c: \
+auto-str conf-destdir
+	./auto-str auto_home `head -1 conf-destdir` > auto_destdir.c
+
+auto_destdir.o: \
+compile auto_destdir.c
+	./compile auto_destdir.c
+
 auto_home.c: \
 auto-str conf-home
 	./auto-str auto_home `head -1 conf-home` > auto_home.c
@@ -302,16 +310,16 @@ compile hier.c auto_home.h
 	./compile hier.c
 
 install: \
-load install.o hier.o auto_home.o unix.a byte.a
-	./load install hier.o auto_home.o unix.a byte.a 
+load install.o hier.o auto_destdir.o unix.a byte.a
+	./load install hier.o auto_destdir.o unix.a byte.a 
 
 install.o: \
 compile install.c buffer.h strerr.h error.h open.h readwrite.h exit.h
 	./compile install.c
 
 instcheck: \
-load instcheck.o hier.o auto_home.o unix.a byte.a
-	./load instcheck hier.o auto_home.o unix.a byte.a 
+load instcheck.o hier.o auto_destdir.o unix.a byte.a
+	./load instcheck hier.o auto_destdir.o unix.a byte.a 
 
 instcheck.o: \
 compile instcheck.c strerr.h error.h readwrite.h exit.h