[tex-k] dvips: Makefile.in cleanup

Thomas Esser te at dbs.uni-hannover.de
Thu Jan 13 09:12:40 CET 2005


Hi,

the following suggestion for dvips was submitted by Peter Breitenlohner:
(1) It should be POST_INSTALL, not POSTINSTALL
(2) Before you uninstall dvips.info* you should run "install-info --delete",
    suitably bracketed by PRE_UNINSTALL and NORMAL_UNINSTALL

The patch for this is:

diff -ru old/texk/dvipsk/Makefile.in new/texk/dvipsk/Makefile.in
--- old/texk/dvipsk/Makefile.in	2004-12-10 22:32:28.000000000 +0100
+++ new/texk/dvipsk/Makefile.in	2005-01-13 09:07:28.649618970 +0100
@@ -114,12 +114,17 @@
 # TeX macros.
 #	cd $(srcdir)/tex && for m in *.tex; do \
 #	  $(INSTALL_DATA) $$m $(dvips_plain_macrodir)/$$m; done
-	$(POSTINSTALL)
+	$(POST_INSTALL)
 	if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
 	  install-info --info-dir=$(infodir) $(infodir)/$(program).info; \
 	else true; fi
 
 uninstall-data:
+	$(PRE_UNINSTALL)
+	if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
+	  install-info --delete --info-dir=$(infodir) $(infodir)/$(program).info; \
+	else true; fi
+	$(NORMAL_UNINSTALL)
 	rm -f $(infodir)/dvips.i*
 #	for h in $(prologues); do rm -f $(psheaderdir)/base/$$h; done
 #	cd $(srcdir)/reencode && for e in *.enc; do rm -f $(psheaderdir)/base/$$e; \

Thomas



More information about the tex-k mailing list