Blob Blame Raw
diff --git Makefile.in Makefile.in
index 51435c1..c2cff43 100644
--- Makefile.in
+++ Makefile.in
@@ -99,7 +99,7 @@ $(JIMSH): $(LIBJIM) jimsh.o initjimsh.o
 install: all @TCL_EXTS@ install-exec install-docs
 	$(INSTALL_DATA_DIR) $(DESTDIR)@libdir@/jim
 	$(INSTALL_DATA) $(LIBJIM) $(DESTDIR)@libdir@
-	$(INSTALL_DATA) @srcdir@/README.extensions @C_EXT_SHOBJS@ $(DESTDIR)@libdir@/jim
+	$(INSTALL_DATA) @srcdir@/README.extensions @C_EXT_SHOBJS@ $(DESTDIR)@datadir@/doc/jimtcl
 	for i in tcltest.tcl @TCL_EXTS@; do $(INSTALL_DATA) @srcdir@/$$i $(DESTDIR)@libdir@/jim; done
 	$(INSTALL_DATA_DIR) $(DESTDIR)@includedir@
 	$(INSTALL_DATA) @srcdir@/jim.h @srcdir@/jim-eventloop.h @srcdir@/jim-signal.h \
@@ -118,9 +118,9 @@ uninstall:
 	rm -f $(DESTDIR)@bindir@/$(JIMSH)
 	rm -f $(DESTDIR)@bindir@/build-jim-ext
 	rm -f $(DESTDIR)@libdir@/$(LIBJIM)
-	for i in README.extensions @C_EXT_SHOBJS@ @TCL_EXTS@; do rm -f $(DESTDIR)@libdir@/jim/$$i; done
+	for i in README.extensions @C_EXT_SHOBJS@ @TCL_EXTS@; do rm -f $(DESTDIR)@datadir@/doc/jimtcl/$$i; done
 	rm -f $(DESTDIR)@includedir@/jim*.h
-	rm -f $(DESTDIR)@datadir@/doc/jim/Tcl.html
+	rm -f $(DESTDIR)@datadir@/doc/jimtcl/Tcl.html
 @else
 install install-exec: all
 uninstall:
@@ -259,15 +259,15 @@ install-docs:
 
 @if INSTALL_DOCS == docs
 install-docs: docs
-	$(INSTALL_DATA_DIR) $(DESTDIR)$(docdir)
-	$(INSTALL_DATA) Tcl.html $(DESTDIR)$(docdir)
+	$(INSTALL_DATA_DIR) $(DESTDIR)@datadir@/doc/jimtcl
+	$(INSTALL_DATA) Tcl.html $(DESTDIR)@datadir@/doc/jimtcl
 @endif
 
 @if INSTALL_DOCS == shipped
 install-docs:
-	$(INSTALL_DATA_DIR) $(DESTDIR)$(docdir)
+	$(INSTALL_DATA_DIR) $(DESTDIR)@datadir@/doc/jimtcl
 	@echo "Warning: asciidoc not available - installing Tcl_shipped.html"
-	$(INSTALL_DATA) Tcl_shipped.html $(DESTDIR)$(docdir)/Tcl.html
+	$(INSTALL_DATA) Tcl_shipped.html $(DESTDIR)@datadir@/doc/jimtcl/Tcl.html
 @endif
 
 Tcl.html: jim_tcl.txt @srcdir@/make-index