$NetBSD: patch-aa,v 1.17 2001/03/28 14:57:55 drochner Exp $

--- Makefile.am.orig	Fri Dec 22 13:25:49 2000
+++ Makefile.am	Wed Mar 28 13:44:48 2001
@@ -3,25 +3,32 @@
 #
 
 MAINTAINERCLEANFILES=Makefile.in configure libtool config.guess config.sub ltconfig ltmain.sh aclocal.m4 config.h.in install-sh missing mkinstalldirs release-notes.html release-notes.txt
+if Version_1_2
+SUBDIRS	     = include lib
+else
 SUBDIRS	     = include scripts lib clients doc @BuildTestDir@
+endif
 
 DIST_SUBDIRS = include scripts lib clients doc test
 
 AUTOMAKE_OPTIONS = 1.4
 
+EXTRA_DIST=	acconfig.h configure \
+		BUG-REPORTING CREDITS KNOWN_BUGS RELEASE-POLICY NOTES
+
 #
 # Install some information files
 #
 # Lets put the informational stuff in a sub directory to avoid 
 # poluting /usr/local for default installs.
 #
-rootdir=	$(exec_prefix)/LessTif
+# Only install the documentation if installing 2.0-compatible libraries.
+#
+if Version_2_0
+rootdir=	$(docdir)
 root_DATA=	AUTHORS BUG-REPORTING COPYING COPYING.LIB CREDITS \
                 KNOWN_BUGS README RELEASE-POLICY release-notes.txt
 
-EXTRA_DIST=	acconfig.h configure \
-		BUG-REPORTING CREDITS KNOWN_BUGS RELEASE-POLICY NOTES
-
 @MAINT@changelog:
 @MAINT@	@ cvs -Q -z9 log -rrelease_@MAJOR_VERSION@_@MINOR_VERSION@_@PICO_VERSION@: \
 @MAINT@                  acconfig.h acinclude.m4 configure.in Makefile.am \
@@ -34,7 +41,6 @@
 @MAINT@                  doc/lessdox \
 @MAINT@	    | $(srcdir)/scripts/parselog >ChangeLog
 
-htmldir=	$(exec_prefix)/LessTif/doc
 html_DATA=	release-notes.html
 
 all-local: BUG-REPORTING
@@ -51,6 +57,7 @@
 
 #install-data-hook:
 #	${INSTALL_DATA} $(srcdir)/NOTES $(DESTDIR)$(htmldir)/release-notes.html
+endif
 
 
 #
