diff doc/interpreter/Makefile.in @ 2624:7e24c1f29db4

[project @ 1997-01-26 04:40:00 by jwe]
author jwe
date Sun, 26 Jan 1997 04:40:10 +0000
parents ccd72573a0cf
children 0b852cbea582
line wrap: on
line diff
--- a/doc/interpreter/Makefile.in	Sun Jan 26 04:30:20 1997 +0000
+++ b/doc/interpreter/Makefile.in	Sun Jan 26 04:40:10 1997 +0000
@@ -31,11 +31,23 @@
 	stats.texi stmt.texi strings.texi system.texi var.texi \
 	vr-idx.texi
 
-FORMATTED =  octave.dvi octave.ps octave.info octave.info-[0-9]*
+FORMATTED = octave.dvi octave.ps octave.info octave.info octave.info-[0-9]*
 
 DISTFILES = Makefile.in dir octave.1 conf.texi gpl.texi \
 	$(TEXINFO) $(FORMATTED)
 
+ifeq ($(wildcard octave.info), )
+  BINDISTFILES = $(srcdir)/octave.1 $(srcdir)/octave.info \
+	$(wildcard $(srcdir)/octave.info-[0-9]*)
+else
+  BINDISTFILES = $(srcdir)/octave.1 octave.info octave.info-[0-9]*
+endif
+
+# Look for version.h to get version information.
+xfiles := $(TOPDIR)/src/version.h $(srcdir)/$(TOPDIR)/src/version.h
+
+version_file := $(firstword $(foreach file, $(xfiles), $(wildcard $(file))))
+
 SPELL = $(patsubst %.texi, %.spell, $(ALL_TEXINFO))
 
 %.spell : %.texi
@@ -162,3 +174,9 @@
 dist: all
 	ln $(DISTFILES) ../../`cat ../../.fname`/doc/interpreter
 .PHONY: dist
+
+bin-dist:
+	if [ -n "$(BINDISTFILES)" ]; then \
+	  ln $(BINDISTFILES) ../../`cat ../../.fname`/doc/interpreter ; \
+	fi
+.PHONY: bin-dist