Mercurial > hg > octave-jordi
comparison doc/interpreter/Makefile.in @ 6798:18b7ab1ad68b
[project @ 2007-07-25 19:23:26 by jwe]
author | jwe |
---|---|
date | Wed, 25 Jul 2007 19:23:57 +0000 |
parents | 5b00586ccd27 |
children | 3c500bc71e14 |
comparison
equal
deleted
inserted
replaced
6797:5b00586ccd27 | 6798:18b7ab1ad68b |
---|---|
95 | 95 |
96 MAN_BASE := mkoctfile octave octave-bug octave-config | 96 MAN_BASE := mkoctfile octave octave-bug octave-config |
97 MAN_SRC := $(addsuffix .1, $(MAN_BASE)) | 97 MAN_SRC := $(addsuffix .1, $(MAN_BASE)) |
98 | 98 |
99 # FIXME -- need to include generated figures here... | 99 # FIXME -- need to include generated figures here... |
100 DISTFILES = $(addprefix $(srcdir)/, Makefile.in contributors.in mkcontrib.awk dir \ | 100 DISTFILES = $(addprefix $(srcdir)/, Makefile.in contributors.in \ |
101 munge-texi.cc $(MAN_SRC) $(SOURCES) $(TEXINFO_SOURCE)) $(FORMATTED) $(IMAGES) | 101 mkcontrib.awk dir munge-texi.cc $(MAN_SRC) $(SOURCES) $(MAIN_TEXINFO)) \ |
102 $(SUB_TEXINFO) contributors.texi $(FORMATTED) $(IMAGES) | |
102 | 103 |
103 DISTDIRS = HTML | 104 DISTDIRS = HTML |
104 | 105 |
105 DISTSUBDIRS := | 106 DISTSUBDIRS := |
106 | 107 |
200 echo "creating HTML directory"; \ | 201 echo "creating HTML directory"; \ |
201 mkdir HTML; \ | 202 mkdir HTML; \ |
202 fi | 203 fi |
203 cp $(filter-out html-dir, $<) HTML | 204 cp $(filter-out html-dir, $<) HTML |
204 | 205 |
205 ## Unset DISPLAY here to avoid problems with the -title option for | 206 ## Sleep for a second after plotting to allow gnuplot to finish |
206 ## gnuplot (it doesn't work if we are calling pgnuplot). Sleep for | 207 ## writing its output before Octave exits. |
207 ## a second to allow gnuplot to finish writing its output before | |
208 ## Octave exits. | |
209 define run-octave | 208 define run-octave |
210 DISPLAY= $(TOPDIR)/run-octave -f -q -H -p $(srcdir) \ | 209 $(TOPDIR)/run-octave -f -q -H -p $(srcdir) \ |
211 --eval "$(notdir $(basename $<)) ('$(notdir $(basename $@))', '$(patsubst .%,%, $(suffix $@))'); sleep (1);" | 210 --eval "$(notdir $(basename $<)) ('$(notdir $(basename $@))', '$(patsubst .%,%, $(suffix $@))'); sleep (1);" |
212 endef | 211 endef |
213 | 212 |
214 $(INTERPIMAGES_EPS) $(INTERPIMAGES_PNG) $(INTERPIMAGES_TXT): interpimages.m | 213 $(INTERPIMAGES_EPS) $(INTERPIMAGES_PNG) $(INTERPIMAGES_TXT): interpimages.m |
215 $(run-octave) | 214 $(run-octave) |
304 rm -f $(SUB_TEXINFO) contributors.texi | 303 rm -f $(SUB_TEXINFO) contributors.texi |
305 .PHONY: clean-texi | 304 .PHONY: clean-texi |
306 | 305 |
307 dist: clean-texi all | 306 dist: clean-texi all |
308 ln $(DISTFILES) ../../`cat ../../.fname`/doc/interpreter | 307 ln $(DISTFILES) ../../`cat ../../.fname`/doc/interpreter |
309 for dir in $(DISTDIRS); do ln ../../doc/interpreter/$$dir ../../`cat ../../.fname`/doc/interpreter/$$dir; done | 308 for dir in $(DISTDIRS); do \ |
309 mkdir ../../`cat ../../.fname`/doc/interpreter/$$dir; \ | |
310 ln ../../doc/interpreter/$$dir/* ../../`cat ../../.fname`/doc/interpreter/$$dir; \ | |
311 done | |
310 for dir in $(DISTSUBDIRS); do mkdir ../../`cat ../../.fname`/doc/interpreter/$$dir; $(MAKE) -C $$dir $@; done | 312 for dir in $(DISTSUBDIRS); do mkdir ../../`cat ../../.fname`/doc/interpreter/$$dir; $(MAKE) -C $$dir $@; done |
311 .PHONY: dist | 313 .PHONY: dist |