$NetBSD: patch-aa,v 1.4 2001/09/14 03:48:07 jlam Exp $ --- Imakefile.orig Fri Feb 28 08:48:57 1997 +++ Imakefile Mon Sep 14 16:52:46 1998 @@ -11,12 +11,12 @@ /* インストールディレクトリ */ /* 書き込み権限が無いとインストール出来ません.=> 遊べない.(^^; */ -PIXMAPDIR = /usr/local/games/lib/xsoldier -SCOREDIR = /usr/local/games/lib/xsoldier -BINDIR = /usr/local/games +PIXMAPDIR = $(PREFIX)/share/xsoldier +SCOREDIR = /var/games/ +BINDIR = $(PREFIX)/bin /* スコアファイル名.SCOREDIR 以下に置かれます. */ -SCOREFILE = .scorefile +SCOREFILE = xsoldier /* ----------------------------------------------------------------------- */ @@ -93,9 +93,9 @@ @echo "install update . done" install.score:: - @if [ -d $(SCOREDIR) ]; then chmod 755 $(SCOREDIR); \ - else $(MKDIRHIER) $(SCOREDIR); chmod 755 $(SCOREDIR); fi - $(INSTALL) -c -m 600 scorefile.txt $(SCOREDIR)/$(SCOREFILE) + @if [ ! -e $(PIXMAPDIR)/$(SCOREFILE).score.dist ]; then \ + $(BSD_INSTALL_DATA) scorefile.txt $(PIXMAPDIR)/$(SCOREFILE).score.dist ; \ + fi @echo "install score . done" install.pixmap:: @@ -109,5 +109,5 @@ install.bin:: @if [ -d $(BINDIR) ]; then set +x; \ else (set -x; $(MKDIRHIER) $(BINDIR)); fi - $(INSTALL) -c -m 4755 $(PROGRAM) $(BINDIR)/$(PROGRAM) + $(INSTALL) -c -o $(BINOWN) -g games -m 2755 $(PROGRAM) $(BINDIR)/$(PROGRAM) @echo "install bin . done"