From 2fbbc097674310a6f138c455bbcc76d8e5dcfcf5 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Wed, 24 Sep 2008 15:20:33 +0200 Subject: [PATCH] Fix installation of the info file. Following a suggestion by Peter K. Monsson. --- ChangeLog | 4 ++++ Makefile | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9e5d661b9..93b9bed6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-09-24 Carsten Dominik + + * Makefile (install-info): Use the install-info program. + 2008-09-17 Carsten Dominik * Makefile: Handle new file org-plot.el. diff --git a/Makefile b/Makefile index fbe40a141..778e55e05 100644 --- a/Makefile +++ b/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 ;