summaryrefslogtreecommitdiff
path: root/news/newsfetch/patches/patch-aa
blob: 4fda96faa56a338f7a39909915caa8d65c5eef60 (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
$NetBSD: patch-aa,v 1.2 2003/09/22 21:12:19 wiz Exp $

--- Makefile.orig	Mon Nov 13 02:01:49 2000
+++ Makefile	Mon Sep 22 19:38:52 2003
@@ -1,9 +1,9 @@
 # Makefile for newsfetch program
-CC = gcc
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+#CC = gcc
+BINDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
 
-CFLAGS= -O2 # inline opt
+#CFLAGS= -O2 # inline opt
 
 # uncomment this for strict checking
 #CFLAGS = -O2 -Wall -pedantic -Wstrict-prototypes -fno-strength-reduce
@@ -15,8 +15,7 @@
 objs = newsfetch.o nntp.o net.o opt.o util.o getopt.o
  
 newsfetch: $(objs)
-	$(CC) -o newsfetch $(objs)
-	strip newsfetch
+	$(CC) -o newsfetch $(objs) $(LDFLAGS)
 
 .c.o:
 	$(CC) -c $(CFLAGS) $< 
@@ -25,10 +24,8 @@
 	rm -f *.o newsfetch
 
 install:
-#	cp newsfetch $(BINDIR)/newsfetch
-#	cp newsfetch.1 $(MANDIR)/newsfetch.1
-	cp newsfetch /usr/local/bin
-	cp newsfetch.1 /usr/local/man/man1
+	${BSD_INSTALL_PROGRAM} newsfetch $(BINDIR)/newsfetch
+	${BSD_INSTALL_MAN} newsfetch.1 $(MANDIR)/newsfetch.1
 
 uninstall:
 	rm -f $(BINDIR)/newsfetch