summaryrefslogtreecommitdiff
path: root/editors/vilearn/patches/patch-aa
blob: df5322cd7850a9e72737a1d04c6324715bd96ab9 (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 2003/09/25 12:56:34 jmmv Exp $

--- Makefile.orig	Wed Sep 24 16:22:05 2003
+++ Makefile	Wed Sep 24 16:26:08 2003
@@ -4,12 +4,12 @@
 
 # BINDIR is where the vilearn shell script will live. It should be in the
 # path of new users.
-BINDIR=	/usr/local/bin
+BINDIR=	${PREFIX}/bin
 
 # MANDIR is the man area where vilearn's man page will be installed. It
 # should be somewhere that the default man command will search.
 
-MANDIR=	/usr/local/man
+MANDIR=	${PREFIX}/man
 
 # SEC is the section of the manual that vilearn's man page will be
 # installed in.
@@ -18,7 +18,7 @@
 
 # TUTORIALS is the directory where the master copies of the tutorials
 # will live.
-TUTORIALS=	/usr/local/lib/vilearn
+TUTORIALS=	${PREFIX}/share/vilearn
 
 # Shouldn't have to edit below here.
 
@@ -33,13 +33,12 @@
 	sed -e s@:SEC:@${SEC}@ < vilearn.man > vilearn.${SEC}
 
 install : all
-	-mkdir ${TUTORIALS}
+	${BSD_INSTALL_DATA_DIR} ${TUTORIALS}
 	for i in ${TUTS} ; do \
-	    rm -f ${TUTORIALS}/$$i; \
-	    install -c -m 444 $$i ${TUTORIALS}/$$i ; \
+	    ${BSD_INSTALL_DATA} $$i ${TUTORIALS}/$$i ; \
 	done
-	install -m 755 vilearn ${BINDIR}/vilearn
-	install -m 444 vilearn.${SEC} ${MANDIR}/man${SEC}/vilearn.${SEC}
+	${BSD_INSTALL_SCRIPT} vilearn ${BINDIR}/vilearn
+	${BSD_INSTALL_MAN} vilearn.${SEC} ${MANDIR}/man${SEC}/vilearn.${SEC}
 
 clean :
 	rm -f vilearn vilearn.${SEC}