$NetBSD: patch-aa,v 1.1.1.1 2003/10/04 20:31:23 agc Exp $

--- Makefile.orig	2003-06-17 20:25:30.000000000 -0700
+++ Makefile
@@ -92,7 +92,9 @@ ofiles = scm.o time.o repl.o scl.o sys.o
 # ramap.o
 ifiles = Init$(VERSION).scm Transcen.scm Link.scm Macro.scm Macexp.scm \
 	Tscript.scm compile.scm
-hobfiles = hobbit.scm scmhob.scm scmhob.h
+hobsrcs = hobbit.scm scmhob.scm
+hobincs = scmhob.h
+hobfiles = $(hobsrcs) $(hobincs)
 xafiles = xatoms.scm x11.scm xevent.scm keysymdef.scm
 xfiles = x.c x.h xgen.scm xevent.h inc2scm $(xafiles)
 
@@ -341,12 +343,12 @@ $(PREVDOCS)scm.info:	srcdir.mk Makefile
 
 rpm_prefix=/usr/src/redhat/
 
-prefix = /usr/local/
+prefix = $(PREFIX)/
 exec_prefix = $(prefix)
 # directory where `make install' will put executable.
 bindir = $(exec_prefix)bin/
 libdir = $(exec_prefix)lib/
-libscmdir = $(libdir)scm/
+libscmdir = $(prefix)share/scm/
 # directory where `make install' will put manual page.
 mandir = $(prefix)man/
 man1dir = $(mandir)man1/
@@ -407,15 +409,15 @@ install:	scm.1
 	-cp scm.1 $(man1dir)
 	test -d $(libdir) || mkdir $(libdir)
 	test -d $(libscmdir) || mkdir $(libscmdir)
-	-cp $(ifiles) $(hobfiles) COPYING r4rstest.scm $(libscmdir)
+	-cp $(ifiles) $(hobsrcs) COPYING r4rstest.scm $(libscmdir)
 	test -f $(libscmdir)require.scm || \
 		cp requires.scm $(libscmdir)require.scm
-	-cp build build.scm mkimpcat.scm Iedline.scm *.sl *.so patchlvl.h\
+	-cp build build.scm mkimpcat.scm Iedline.scm *.sl *.so \
 		$(xafiles) $(libscmdir)
 
 installlib:
 	test -d $(includedir) || mkdir $(includedir)
-	cp scm.h scmfig.h scmflags.h $(includedir)
+	cp scm.h scmfig.h scmflags.h patchlvl.h $(hobincs) $(includedir)
 	test -d $(libdir) || mkdir $(libdir)
 	cp libscm.a $(libdir)libscm.a
 
