summaryrefslogtreecommitdiff
path: root/misc/chord/patches/patch-aa
blob: 5ccc0723bcd0a930d1c4e8aa223468a7cad1029d (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
43
44
45
$NetBSD: patch-aa,v 1.4 2010/02/11 19:02:01 joerg Exp $

--- Makefile.orig	Tue Apr 25 08:04:52 1995
+++ Makefile	Mon Sep 22 11:18:10 2003
@@ -8,15 +8,15 @@
 #GETOPT = getopt.o
 
 # Use a ansi or K&R compiler
-CC = cc 
-CFLAGS = -D$(PAPERSIZE) -g
+#CC = cc 
+#CFLAGS = -D$(PAPERSIZE) -g
 
 # where to put the resulting program
-BINDIR = /usr/local/bin
+BINDIR = ${PREFIX}/bin
 
 # where to put the man page
-MANDIR = /usr/man
-MANEXT = l
+MANDIR = ${PREFIX}/${PKGMANDIR}
+MANEXT = 1
 
 # You should not have to change anything below this line
 
@@ -46,13 +46,12 @@
 toc.o	   : chord.h
 
 install : all
-	cp $(PROGRAMS) $(BINDIR)
-	rm -f $(MANDIR)/cat$(MANEXT)/chord.$(MANEXT)
-	cp chord.man $(MANDIR)/man$(MANEXT)/chord.$(MANEXT)
-	chmod 666 $(MANDIR)/man$(MANEXT)/chord.$(MANEXT)
-	Cp a2crd.man $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)
-	chmod 666 $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)
-	
+	for prog in $(PROGRAMS); do \
+		${BSD_INSTALL_PROGRAM} $$prog ${DESTDIR}$(BINDIR)/$$prog; \
+	done
+	${BSD_INSTALL_MAN} chord.man ${DESTDIR}$(MANDIR)/man$(MANEXT)/chord.$(MANEXT)
+	${BSD_INSTALL_MAN} a2crd.man ${DESTDIR}$(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)
+
 shar : $(SRC)
 	rm -f $(RELNAME).part*
 	shar -F -L 60 -o $(RELNAME).part $(SRC) $(INCL) $(SONGS) $(DOCS)