summaryrefslogtreecommitdiff
path: root/textproc/ispell-slovak/patches/patch-aa
blob: 6a609dea01b26e40a41b7c196530d460a3dd9f89 (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.3 2003/11/01 14:51:03 salo Exp $

--- Makefile.orig	2003-04-09 14:31:57.000000000 +0200
+++ Makefile	2003-11-01 15:44:33.000000000 +0100
@@ -1,17 +1,18 @@
-installdir=/usr/lib/ispell
+INSTALLDIR=${PREFIX}/lib/
+BUILDHASH=${PREFIX}/bin/buildhash
 
 all: slovak.hash
 
 install: slovak.hash slovak.aff
-	mkdir -p $(installdir)
-	install -o root -g root -m 0644 slovak.hash $(installdir)
-	install -o root -g root -m 0644 slovak.aff $(installdir)
+	${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 *~