summaryrefslogtreecommitdiff
path: root/japanese/kcc/files/patch-aa
blob: 374a9e57c8efadf843dc25ff53f1c9342224db74 (plain) (blame)
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
--- Makefile.orig	1994-03-28 13:05:28.000000000 +0200
+++ Makefile	2014-05-09 21:13:14.000000000 +0200
@@ -7,10 +7,11 @@
 
 #	@(#)Makefile 2.3 (Y.Tonooka) 3/28/94
 
-          BINPATH = /usr/local/bin
-          MANPATH = /usr/local/man
-          JMANDIR = japanese
-           CFLAGS = -O
+          PREFIX?= /usr/local
+          BINPATH = ${PREFIX}/bin
+          MANPATH = ${PREFIX}/man
+          JMANDIR = ja
+           CFLAGS?= -O
 
             SHELL = /bin/sh
                CP = cp
@@ -34,10 +35,10 @@
 
 $(BINPATH)/kcc: kcc.c
 	$(MAKE) kcc
-	$(INSTALL) -s kcc $(BINPATH)
+	$(BSD_INSTALL_PROGRAM) kcc $(DESTDIR)$(BINPATH)
 
 $(MANPATH)/$(JMANDIR)/man1/kcc.1: kcc.jman
-	$(INSTALL) -m 644 kcc.jman $@
+	$(BSD_INSTALL_MAN) kcc.jman $(DESTDIR)$(MANPATH)/$(JMANDIR)/man1/kcc.1
 
 clean:
 	rm -f $(CMDS) $(OBJS) mon.out gmon.out make.log