Browse Source

Fix installation of the info file.

Following a suggestion by Peter K. Monsson.
Carsten Dominik 16 years ago
parent
commit
2fbbc09767
2 changed files with 8 additions and 2 deletions
  1. 4 0
      ChangeLog
  2. 4 2
      Makefile

+ 4 - 0
ChangeLog

@@ -1,3 +1,7 @@
+2008-09-24  Carsten Dominik  <dominik@science.uva.nl>
+
+	* Makefile (install-info): Use the install-info program.
+
 2008-09-17  Carsten Dominik  <dominik@science.uva.nl>
 
 	* Makefile: Handle new file org-plot.el.

+ 4 - 2
Makefile

@@ -52,6 +52,9 @@ TEXI2HTML = makeinfo --html --number-sections
 # How to copy the lisp files and elc files to their distination.
 CP = cp -p
 
+# Name of the program to install info files
+INSTALL_INFO=install-info
+
 ##----------------------------------------------------------------------
 ##  BELOW THIS LINE ON YOUR OWN RISK!
 ##----------------------------------------------------------------------
@@ -127,8 +130,7 @@ install-lisp: $(LISPFILES) $(ELCFILES)
 	$(CP) $(ELCFILES)  $(lispdir)
 
 install-info: $(INFOFILES)
-	if [ ! -d $(infodir) ]; then $(MKDIR) $(infodir); else true; fi ;
-	$(CP) $(INFOFILES) $(infodir)
+	$(INSTALL_INFO) --info-file=$(INFOFILES) --info-dir=$(infodir)
 
 install-noutline: xemacs/noutline.elc
 	if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;