summaryrefslogtreecommitdiff
path: root/textproc/ispell-slovak/patches/patch-aa
blob: f8af23ca7d648951185f3d954a8f20f99260e85c (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
$NetBSD: patch-aa,v 1.4 2004/09/12 20:57:41 salo Exp $

--- Makefile.orig	2004-02-27 14:50:43.000000000 +0100
+++ Makefile	2004-09-12 22:50:13.000000000 +0200
@@ -1,17 +1,18 @@
-DESTDIR=/usr/lib/ispell
+INSTALLDIR=${PREFIX}/lib/
+BUILDHASH=${PREFIX}/bin/buildhash
 
 all: slovak.hash
 
 install: slovak.hash slovak.aff
-	mkdir -p $(DESTDIR)
-	install -o root -g bin -m 0444 slovak.hash $(DESTDIR)
-	install -o root -g bin -m 0444 slovak.aff $(DESTDIR)
+	${BSD_INSTALL_DATA_DIR} $(INSTALLDIR)
+	${BSD_INSTALL_DATA} slovak.hash $(INSTALLDIR)
+	${BSD_INSTALL_DATA} slovak.aff $(INSTALLDIR)
 
 slovak.words:
-	cat *.words | sort -u -f > slovak.words
+	${CAT} *.words | ${SORT} -u -f > slovak.words
 
 slovak.hash: slovak.aff slovak.words
-	buildhash slovak.words slovak.aff slovak.hash
+	${BUILDHASH} slovak.words slovak.aff slovak.hash
 
 clean:
 	rm -f slovak.words slovak.words.cnt slovak.words.stat slovak.hash *~