summaryrefslogtreecommitdiff
path: root/textproc/awf/patches/patch-aa
blob: e80b91065f0ec419036ee2dbdc68a31c1e35e36f (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
46
$NetBSD: patch-aa,v 1.2 2009/07/07 22:24:37 joerg Exp $

--- Makefile.orig	2009-07-08 00:23:21.000000000 +0200
+++ Makefile
@@ -1,29 +1,27 @@
-AWFLIB = /usr/lib/awf	# beware, awf itself knows this
-BIN = /usr/bin
-MAN = /usr/man/man1
+AWFLIB = ${PREFIX}/share/awf	# beware, awf itself knows this
+BIN = ${PREFIX}/bin
+MAN = ${PREFIX}/man/man1
 CP = common dev.dumb mac.man mac.ms pass1 pass2.base pass2.man pass2.ms pass3
 DTR = README COPYRIGHT Makefile awf awf.1 awf.1.out common dev.dumb mac.man \
 	mac.ms pass1 pass2.base pass2.man pass2.ms pass3
 # System V brain damage
-SHELL = /bin/sh
+#SHELL = /bin/sh
 
-r:	awf.1
+all r:	awf.1
 	chmod +x awf
-	AWFLIB=. awf -man awf.1 >tmp
-	cmp tmp awf.1.out
-	rm tmp
+	AWFLIB=. ./awf -man awf.1 >tmp
 
 install:
-	-if test ! -d $(AWFLIB) ; then mkdir $(AWFLIB) ; fi
-	cp $(CP) $(AWFLIB)
-	cp awf $(BIN)
-	cp awf.1 $(MAN)
+	-if test ! -d ${DESTDIR}$(AWFLIB) ; then mkdir ${DESTDIR}$(AWFLIB) ; fi
+	cp $(CP) ${DESTDIR}$(AWFLIB)
+	cp awf ${DESTDIR}$(BIN)
+	cp awf.1 ${DESTDIR}$(MAN)
 
 rr:	r testm tests.Z tests.out.Z
-	AWFLIB=. awf -man testm >tmp
+	AWFLIB=. ./awf -man testm >tmp
 	cmp tmp testm.out
 	rm tmp
-	uncompress <tests.Z | AWFLIB=. awf -ms >tmp
+	uncompress <tests.Z | AWFLIB=. ./awf -ms >tmp
 	uncompress <tests.out.Z | cmp - tmp
 	rm tmp