blob: 1e76ee058fcbb92db6188234cf48464604f10b6e (
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
|
$NetBSD: patch-client_Makefile,v 1.2 2014/01/01 23:52:32 dholland Exp $
Configure for pkgsrc.
--- client/Makefile~ 2013-01-02 01:52:29.000000000 +0000
+++ client/Makefile
@@ -25,7 +25,7 @@ LIBS = -lcurses -ltermlib #-lresolv
LPR = lpr
#RDEST = /usr/ucb/phone
-RDEST = /usr/local/bin/phone
+RDEST = ${PREFIX}/bin/phone
HDRS = defs.h
@@ -50,14 +50,14 @@ DEST = phone
all: ${DEST}
${DEST}: ${OBJS}
- /bin/rm -f ${DEST}
+ rm -f ${DEST}
${CC} ${CFLAGS} -o ${DEST} ${OBJS} ${LIBS}
${OBJS}: ${HDRS}
install: ${DEST}
- /bin/rm -f ${RDEST}
- cp ${DEST} ${RDEST}
+ rm -f ${RDEST}
+ ${BSD_INSTALL_PROGRAM} ${DEST} ${DESTDIR}${RDEST}
print: ${HDRS} ${SRCS}
pr -f ${HDRS} ${SRCS} | expand -4 | ${LPR}
|