--- Makefile.orig	Sat Jan 15 02:38:19 2005
+++ Makefile	Sat Jan 15 02:39:08 2005
@@ -168,17 +168,17 @@
 	cd doc && $(MAKE) -k
 
 install: latex2rtf doc/latex2rtf.1 $(CFGS) scripts/latex2png
-	$(MKDIR) $(BIN_INSTALL)
-	$(MKDIR) $(MAN_INSTALL)
-	$(MKDIR) $(CFG_INSTALL)
-	cp $(BINARY_NAME)     $(BIN_INSTALL)
-	cp scripts/latex2png  $(BIN_INSTALL)
-	cp doc/latex2rtf.1    $(MAN_INSTALL)
-	cp doc/latex2png.1    $(MAN_INSTALL)
-	cp $(CFGS)            $(CFG_INSTALL)
-	cp doc/latex2rtf.html $(SUPPORT_INSTALL)
-	cp doc/latex2rtf.pdf  $(SUPPORT_INSTALL)
-	cp doc/latex2rtf.txt  $(SUPPORT_INSTALL)
+	$(MKDIR) $(DESTDIR)$(BIN_INSTALL)
+	$(MKDIR) $(DESTDIR)$(MAN_INSTALL)
+	$(MKDIR) $(DESTDIR)$(CFG_INSTALL)
+	cp $(BINARY_NAME)     $(DESTDIR)$(BIN_INSTALL)
+	cp scripts/latex2png  $(DESTDIR)$(BIN_INSTALL)
+	cp doc/latex2rtf.1    $(DESTDIR)$(MAN_INSTALL)
+	cp doc/latex2png.1    $(DESTDIR)$(MAN_INSTALL)
+	cp $(CFGS)            $(DESTDIR)$(CFG_INSTALL)
+	cp doc/latex2rtf.html $(DESTDIR)$(SUPPORT_INSTALL)
+	cp doc/latex2rtf.pdf  $(DESTDIR)$(SUPPORT_INSTALL)
+	cp doc/latex2rtf.txt  $(DESTDIR)$(SUPPORT_INSTALL)
 	@echo "******************************************************************"
 	@echo "*** latex2rtf successfully installed as \"$(BINARY_NAME)\""
 	@echo "*** in directory \"$(BIN_INSTALL)\""
@@ -195,9 +195,9 @@
 	@echo "******************************************************************"
 
 install-info: doc/latex2rtf.info
-	$(MKDIR) $(INFO_INSTALL)
-	cp doc/latex2rtf.info $(INFO_INSTALL)
-	install-info --info-dir=$(INFO_INSTALL) doc/latex2rtf.info
+	$(MKDIR) $(DESTDIR)$(INFO_INSTALL)
+	cp doc/latex2rtf.info $(DESTDIR)$(INFO_INSTALL)
+	install-info --info-dir=$(DESTDIR)$(INFO_INSTALL) doc/latex2rtf.info
 
 realclean: checkdir clean
 	rm -f makefile.depend latex2rtf-$(VERSION).tar.gz
@@ -227,16 +227,16 @@
 	cp macosx/License.rtf $(PKG_RESOURCES)
 	cp macosx/ReadMe.html $(PKG_RESOURCES)
 	cp macosx/Welcome.html $(PKG_RESOURCES)
-	
+
 	-$(PKG_MAKER) -build -p $(PKG_NAME) -r $(PKG_RESOURCES) -f $(PKG_CONTENTS)
 	mkdmg $(DMG_DIR)
-	
+
 	rm -rf $(PKG_DIR)
-	
+
 	mkdmg 
-	
-	
-	
+
+
+
 .PHONY: all check checkdir clean depend dist doc install install_info realclean latex2rtf uptodate splint
 
 # created using "make depend"
