summaryrefslogtreecommitdiffstats
path: root/japanese/weblint97/files/patch-aa
blob: c339319510bdd60251ef8053824e1d37b0dad417 (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
--- Makefile.orig	Sat Mar  8 00:12:00 1997
+++ Makefile	Thu Oct 28 03:41:46 1999
@@ -5,12 +5,15 @@
 
 SHELL    = /bin/sh
 
-BINDIR   = /usr/local/bin
-LIBDIR   = /usr/lib/perl
+PREFIX  ?= /usr/local
+BINDIR   = ${PREFIX}/bin
+PERLLIBDIR?= ${PREFIX}/lib/perl
+LIBDIR   = ${PERLLIBDIR}
 JPDIR    = ./l10n/ja-jp
-JMANDIR  = /usr/local/man/ja/man1
+JMANDIR  = ${PREFIX}/man/ja/man1
 PROGRAM  = weblint
 JPROGRAM = jweblint
+JPROGRAM_TMP = jweblint.tmp
 EXTLIB   = html-ext.pl
 I18NLIB  = htmli18n.pl
 JCODE    = jcode.pl
@@ -39,16 +42,14 @@
 	-cp $(I18NLIB) $(LIBDIR)
 
 jinstall: $(JPROGRAM)
-	-cp $(JPROGRAM) $(BINDIR)
-	-chmod 755 $(BINDIR)/$(JPROGRAM)
-	-cp $(JPDIR)/$(JPROGRAM).1 $(JMANDIR)
-	-cp $(EXTLIB) $(LIBDIR)
-	-cp $(I18NLIB) $(LIBDIR)
-	-cp $(JCODE) $(LIBDIR)
+	${BSD_INSTALL_SCRIPT} $(JPROGRAM) $(BINDIR)
+	${BSD_INSTALL_MAN} $(JPDIR)/$(JPROGRAM).1 $(JMANDIR)
+	${BSD_INSTALL_DATA} $(EXTLIB) $(LIBDIR)
+	${BSD_INSTALL_DATA} $(I18NLIB) $(LIBDIR)
 
 euc-jp:
 	patch < $(JPDIR)/euc-jp.patch
-	mv $(PROGRAM) $(JPROGRAM)
+	mv $(PROGRAM) $(JPROGRAM_TMP)
 	mv $(JPDIR)/$(JCODE) .
 
 sjis:
OpenPOWER on IntegriCloud