--- lclint-2.5m/Makefile.in.orig	Tue May 23 11:01:30 2000
+++ lclint-2.5m/Makefile.in	Wed Jun  7 09:20:33 2000
@@ -41,10 +41,10 @@
 ### 
 
 ### directory for lclint libraries
-LIBDIR     = @installdir@/lib
+LIBDIR     = @installdir@/lib/lclint/lib
 
 ### directory for lclint standard imports
-IMPORTSDIR = @installdir@/imports
+IMPORTSDIR = @installdir@/lib/lclint/imports
 
 ### directory for lclint binary
 INSTALLDIR = @installdir@/bin
@@ -226,21 +226,22 @@
 
 dobinaries:
 	@echo '//  Installing binaries in '$(INSTALLDIR)
-	cd $(LCLINTBINDIR); $(INSTALL) $(INSTALLFLAGS) lclint $(INSTALLDIR)
+	-mkdir -p $(DESTDIR)$(INSTALLDIR)
+	cd $(LCLINTBINDIR); $(INSTALL) $(INSTALLFLAGS) lclint $(DESTDIR)$(INSTALLDIR)
 	@echo '//  Installed: lclint in '$(INSTALLDIR) 
 
 dolibraries:
 	@echo '//  Installing libraries in '$(LIBDIR)
 	@echo "    (This will complain if the directory already exists, don't worry about it.)"
-	-mkdir $(LIBDIR)
-	$(CP) $(LCLINTLIB)/* $(LIBDIR)
+	-mkdir -p $(DESTDIR)$(LIBDIR)
+	$(CP) $(LCLINTLIB)/* $(DESTDIR)$(LIBDIR)
 	@echo '//  Installed libraries.'
 
 doimports:
 	@echo '//  Installing imports in '$(IMPORTSDIR)
 	@echo "    (This will complain if the directory already exists, don't worry about it.)"
-	-mkdir $(IMPORTSDIR)
-	$(CP) $(LCLINTIMPORTS)/* $(IMPORTSDIR)
+	-mkdir -p $(DESTDIR)$(IMPORTSDIR)
+	$(CP) $(LCLINTIMPORTS)/* $(DESTDIR)$(IMPORTSDIR)
 	@echo '//  Installed imports.'
 
 
