changeset 2516:70cad7ffd946

[project @ 1996-11-14 18:46:18 by jwe]
author jwe
date Thu, 14 Nov 1996 18:46:18 +0000
parents 2e5adf62c4d9
children 0c5e671499ed
files src/ChangeLog src/Makefile.in
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
 Thu Nov 14 00:06:19 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
+	* Makefile.in (install-oct): Depend on mk-oct-links.
+	(mk-oct-links): New target.
+
 	* Version 1.92.
 
 Wed Nov 13 11:13:22 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -262,6 +262,11 @@
 install: install-bin install-oct install-lib install-inc
 .PHONY: install
 
+mk-oct-links: mk-oct-links.in
+	sed < $< > $@.tmp \
+	  -e "s;%LN_S%;${LN_S};"
+	$(top_srcdir)/move-if-change $@.tmp $@
+
 install-bin:
 	$(top_srcdir)/mkinstalldirs $(bindir)
 	rm -f $(bindir)/octave
@@ -269,7 +274,7 @@
 	$(LN_S) $(bindir)/octave-$(version) $(bindir)/octave
 .PHONY: install-bin
 
-install-oct:
+install-oct: mk-oct-links
 	if [ -n "$(OCT_FILES)" ]; then \
 	  $(top_srcdir)/mkinstalldirs $(octfiledir) ; \
 	  chmod a+rx mk-oct-links ; \