summaryrefslogtreecommitdiff
path: root/japanese/plain2/files/patch-aa
blob: a7e09379fea6b441b13d6f793bb2577f6440221a (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
32
33
34
35
36
37
38
39
--- Makefile.orig	Tue Apr 19 19:35:38 1994
+++ Makefile	Wed Aug 13 00:20:49 1997
@@ -5,8 +5,8 @@
 #	Makefile for plain2 1993 by A.Uchida 
 #
 #
-BINDIR=/usr/local/bin
-LIBDIR=/usr/local/lib/plain2
+BINDIR=${PREFIX}/bin
+LIBDIR=${PREFIX}/lib/plain2
 
 SHELL=/bin/sh
 
@@ -15,8 +15,8 @@
 #CC=gcc
 #CFLAGS= -fwritable-strings ${DEFINES} -DBSD -DDEBUG
 
-CC=cc
-CFLAGS= -O ${DEFINES} -DBSD -DDEBUG
+CC=cc 
+CFLAGS= -O ${DEFINES} -DBSD -DDEBUG -fwritable-strings
 #CFLAGS=  -g ${DEFINES} -DDEBUG
 
 SRCS=plain2.c readfile.c analyze.c miscutil.c\
@@ -46,8 +46,12 @@
 	etags ${SRCS}
 
 install:
-	install -s plain2 ${BINDIR}
-	cp ../lib/*.p2 ${LIBDIR}
+	install -c -s -o bin -g bin -m 555 plain2 ${BINDIR}
+	[ -d ${LIBDIR} ] || mkdir ${LIBDIR}
+	install -c -o bin -g bin -m 444 ../lib/*.p2 ${LIBDIR}
+# hint for unofficial html patch
+#	install -c -o bin -g bin -m 555 plain2html ${BINDIR}
+#	install -c -o bin -g bin -m 444 pt2htcol.awk ${LIBDIR}
 
 clean:
 	rm -f plain2 *.o asccvt x.c error.LINT