$NetBSD: patch-aa,v 1.5 2006/04/24 22:22:55 markd Exp $

--- Imakefile.orig	2005-01-03 13:03:48.000000000 +1300
+++ Imakefile
@@ -44,13 +44,13 @@
 #
 
 # Full path for directory that will hold the exception handler file:
-EXCEPTION_DIR = .
+EXCEPTION_DIR = $(PREFIX)/share/spim
 
 # Full path for the directory that will hold the executable files:
-BIN_DIR = /usr/unsup/bin
+# BIN_DIR =  $(PREFIX)/bin
 
 # Full path for the directory that will hold the man files:
-MAN_DIR = /var/unsup/man
+# MAN_DIR = $(PREFIX)/man/man1
 
 
 # If you have flex, use it instead of lex.  If you use flex, define this
@@ -111,7 +111,7 @@ CSH = csh
 #  Program dependencies:
 #
 
-AllTarget(spim)
+AllTarget(spim xspim)
 
 spim:	force
 	@touch .spim-made
@@ -131,10 +131,10 @@ configuration:
 NormalProgramTarget(spim_sub,$(OBJS),,,)
 NormalProgramTarget(xspim_sub,$(XOBJS),$(DEPLIBS),$(LOCALLIBS),$(SYSLIBS))
 
-InstallProgram(spim,$(BIN_DIR))
-InstallProgram(xspim,$(BIN_DIR))
-InstallManPage(spim,$(MAN_DIR))
-InstallManPage(xspim,$(MAN_DIR))
+InstallProgram(spim,$(BINDIR))
+InstallProgram(xspim,$(BINDIR))
+InstallManPage(spim,$(MANDIR))
+InstallManPage(xspim,$(MANDIR))
 InstallNonExec(exceptions.s,$(EXCEPTION_DIR))
 
 
@@ -250,7 +250,7 @@ shar:
 	mv -f lex.yy.c.xx lex.yy.c
 
 depend::
-	makedepend -w10 *.c
+	makedepend -w10 -I$(X11BASE)/include *.c
 
 #
 # DO NOT DELETE THIS LINE -- make depend depends on it.