diff -urN Canna36p4.ORIG/Canna.conf Canna36p4/Canna.conf --- Canna36p4.ORIG/Canna.conf 2003-09-22 19:27:12.000000000 +0900 +++ Canna36p4/Canna.conf 2003-09-22 23:02:32.000000000 +0900 @@ -133,7 +133,7 @@ /* rootにならずにインストールする時はこれを定義して下さい */ /* #define InstallAsUser */ /* 従来と互換のディレクトリ構造にする場合はこれを定義してください */ -#define ObsoleteInstallDir +/* #define ObsoleteInstallDir */ #ifdef InstallAsUser # define DefCannaPrefix $(HOME)/canna # define DefErrDir $(cannaPrefix)/log @@ -144,7 +144,7 @@ # define DefErrDir /usr/spool/canna # define DefLibCannaDir /usr/lib # else -# define DefErrDir /var/log +# define DefErrDir /var/log/canna # define DefLibCannaDir $(cannaExecPrefix)/lib # endif #endif @@ -156,16 +156,18 @@ # define DefCannaLibDir $(cannaPrefix)/share/canna #endif -cannaPrefix = DefCannaPrefix +cannaPrefix = /usr cannaExecPrefix = $(cannaPrefix) cannaBinDir = $(cannaExecPrefix)/bin cannaSrvDir = DefCannaSrvDir XCOMM cannaLibDir = /var/lib/canna XCOMM cannaLibDir = /var/db/canna cannaLibDir = DefCannaLibDir -XCOMM cannaManDir = $(cannaPrefix)/share/man -cannaManDir = $(cannaPrefix)/man +cannaManDir = $(cannaPrefix)/share/man +XCOMM cannaManDir = $(cannaPrefix)/man cannaIncDir = $(cannaPrefix)/include/canna +cannaDocDir = $(cannaPrefix)/share/doc/canna-3.6_p4 +cannaShareDir = $(cannaPrefix)/share/canna libCannaDir = DefLibCannaDir ErrDir = DefErrDir @@ -251,7 +253,7 @@ /* #define UseInstalledLibCanna YES */ #define UseInstalledLibCanna NO -DicDir = $(cannaLibDir)/dic +DicDir = /var/lib/canna/dic #ifdef NeXT #define NO_X_ENV @@ -566,6 +568,7 @@ echo "#define CANNAHOSTFILE '$(cannaLibDir)/cannahost'" >> junk @@\ echo "/* for lib/canna */" >> junk @@\ echo "#define CANNALIBDIR '$(cannaLibDir)'" >> junk @@\ + echo "#define CANNASHAREDIR '$(cannaShareDir)'" >> junk @@\ echo "/* for scripts */" >> junk @@\ echo "#define CANNABINDIR $(cannaBinDir)" >> junk @@\ echo "/* others */" >> junk @@\ @@ -592,6 +595,7 @@ echo "#define CANNAHOSTFILE \"$(cannaLibDir)/cannahost\"";\ @@\ echo "/* for lib/canna */";\ @@\ echo "#define CANNALIBDIR \"$(cannaLibDir)\""; \ @@\ + echo "#define CANNASHAREDIR \"$(cannaShareDir)\""; \ @@\ echo "/* for scripts */";\ @@\ echo "#define CANNABINDIR $(cannaBinDir)"; \ @@\ echo "/* others */";\ @@\ diff -urN Canna36p4.ORIG/dic/phono/Imakefile Canna36p4/dic/phono/Imakefile --- Canna36p4.ORIG/dic/phono/Imakefile 2002-10-19 17:27:40.000000000 +0900 +++ Canna36p4/dic/phono/Imakefile 2003-09-22 22:55:59.000000000 +0900 @@ -27,9 +27,10 @@ ROMAJI_DIC_DEF = -DSHIFT - DICDIR = $(cannaLibDir)/dic - SAMPLEDIR = $(cannaLibDir)/sample - SAMPLESRCDIR = $(cannaLibDir)/sample/src + DICDIR = $(DicDir) + CANNASHAREDIR = $(cannaShareDir) + SAMPLEDIR = $(cannaDocDir)/sample + SAMPLESRCDIR = $(cannaDocDir)/sample/src KPDEF = default.kpdef jdaemon.kpdef just.kpdef kaisoku.kpdef kana.kpdef \ lan5.kpdef matsu.kpdef newjis.kpdef romaji.kpdef sokuon.kpdef \ @@ -69,7 +70,7 @@ MakeDirectories(install,$(DICDIR)) MakeDirectories(install,$(SAMPLESRCDIR)) -InstallMultiple($(ROMKANA_TABLES),$(DICDIR)) +InstallMultiple($(ROMKANA_TABLES),$(CANNASHAREDIR)) #ifdef USE_OBSOLETE_STYLE_FILENAME InstallNonExec(default.kpdef,$(SAMPLESRCDIR)) diff -urN Canna36p4.ORIG/lib/canna/Imakefile Canna36p4/lib/canna/Imakefile --- Canna36p4.ORIG/lib/canna/Imakefile 2002-10-20 17:20:33.000000000 +0900 +++ Canna36p4/lib/canna/Imakefile 2003-09-22 22:55:59.000000000 +0900 @@ -116,8 +116,8 @@ #endif /* ProjectX */ #endif /* DoSharedLib */ -sglobal.h: GSYM.awk globnames - awk -f GSYM.awk < globnames > $@ +includes:: + awk -f GSYM.awk < globnames > sglobal.h clean:: $(RM) y.tab.h y.tab.c lex.yy.c gram.h gram.c lex.c sglobal.h diff -urN Canna36p4.ORIG/lib/canna/romaji.c Canna36p4/lib/canna/romaji.c --- Canna36p4.ORIG/lib/canna/romaji.c 2003-09-12 22:18:05.000000000 +0900 +++ Canna36p4/lib/canna/romaji.c 2003-09-22 22:55:59.000000000 +0900 @@ -438,7 +438,7 @@ } } -#if 0 /* currently CANNASHAREDDIR is not defined */ +#if 1 /* currently CANNASHAREDDIR is defined */ if (retval == (struct RkRxDic *)NULL) { /* added for Debian by ISHIKAWA Mutsumi */ extern jrUserInfoStruct *uinfo; diff -urN Canna36p4.ORIG/misc/Imakefile Canna36p4/misc/Imakefile --- Canna36p4.ORIG/misc/Imakefile 2003-09-12 14:48:44.000000000 +0900 +++ Canna36p4/misc/Imakefile 2003-09-22 22:59:20.000000000 +0900 @@ -48,7 +48,7 @@ MakeLintLibSubdirs($(SUBDIRS)) MakeLintSubdirs($(SUBDIRS),install.ln,install.ln) -MakeDirectories(install,$(cannaLibDir)/sample/src) +MakeDirectories(install,$(cannaDocDir)/sample/src) #ifdef USE_OBSOLETE_STYLE_FILENAME default.canna: default.ca @@ -58,8 +58,8 @@ $(CP) default.ca default.canna #endif -InstallNonExec(default.canna,$(cannaLibDir)) -InstallNonExec(is.c,$(cannaLibDir)/sample/src) +InstallNonExec(default.canna,$(cannaDocDir)) +InstallNonExec(is.c,$(cannaDocDir)/sample/src) clean:: $(RM) $(PROGRAMS) diff -urN Canna36p4.ORIG/misc/initfiles/Imakefile Canna36p4/misc/initfiles/Imakefile --- Canna36p4.ORIG/misc/initfiles/Imakefile 2003-09-12 14:48:44.000000000 +0900 +++ Canna36p4/misc/initfiles/Imakefile 2003-09-22 22:55:59.000000000 +0900 @@ -6,7 +6,7 @@ #endif CANNAROOT = ../.. - SAMPLEDIR = $(cannaLibDir)/sample + SAMPLEDIR = $(cannaShareDir) all::