Mercurial > octave
comparison src/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 | 5bcee07be597 |
children | eb58c59bd223 |
comparison
equal
deleted
inserted
replaced
2623:e7e72101b86c | 2624:7e24c1f29db4 |
---|---|
168 DISTFILES = Makefile.in ChangeLog mkdefs mkbuiltins mk-oct-links.in \ | 168 DISTFILES = Makefile.in ChangeLog mkdefs mkbuiltins mk-oct-links.in \ |
169 defaults.h.in oct-conf.h.in octave.gperf oct-gperf.h \ | 169 defaults.h.in oct-conf.h.in octave.gperf oct-gperf.h \ |
170 octave.cc parse.cc lex.cc y.tab.h \ | 170 octave.cc parse.cc lex.cc y.tab.h \ |
171 $(INCLUDES) $(DLD_SRC) $(SOURCES) $(TI_SRC) | 171 $(INCLUDES) $(DLD_SRC) $(SOURCES) $(TI_SRC) |
172 | 172 |
173 all: stamp-prereq stamp-picdir libraries \ | 173 ifeq ($(SHARED_LIBS), true) |
174 $(OCT_FILES) octave | 174 BINDISTFILES = octave $(OCT_FILES) $(SH_LIBS_TO_INSTALL) |
175 BINDISTLIBS = $(addprefix src/, $(SH_LIBS_TO_INSTALL)) | |
176 else | |
177 BINDISTFILES = octave $(OCT_FILES) | |
178 endif | |
179 | |
180 all: stamp-prereq stamp-picdir libraries $(OCT_FILES) octave | |
175 .PHONY: all | 181 .PHONY: all |
176 | 182 |
177 stamp-prereq: defaults.h oct-conf.h | 183 stamp-prereq: defaults.h oct-conf.h |
178 touch stamp-prereq | 184 touch stamp-prereq |
179 | 185 |
247 | 253 |
248 mk-oct-links: mk-oct-links.in | 254 mk-oct-links: mk-oct-links.in |
249 sed < $< > $@.tmp \ | 255 sed < $< > $@.tmp \ |
250 -e "s;%LN_S%;${LN_S};" | 256 -e "s;%LN_S%;${LN_S};" |
251 $(top_srcdir)/move-if-change $@.tmp $@ | 257 $(top_srcdir)/move-if-change $@.tmp $@ |
258 chmod a+rx mk-oct-links | |
252 | 259 |
253 install-bin: | 260 install-bin: |
254 $(top_srcdir)/mkinstalldirs $(bindir) | 261 $(top_srcdir)/mkinstalldirs $(bindir) |
255 rm -f $(bindir)/octave | 262 rm -f $(bindir)/octave |
256 $(INSTALL_PROGRAM) octave$(EXE) $(bindir)/octave-$(version)$(EXE) | 263 $(INSTALL_PROGRAM) octave$(EXE) $(bindir)/octave-$(version)$(EXE) |
258 .PHONY: install-bin | 265 .PHONY: install-bin |
259 | 266 |
260 install-oct: mk-oct-links | 267 install-oct: mk-oct-links |
261 if [ -n "$(OCT_FILES)" ]; then \ | 268 if [ -n "$(OCT_FILES)" ]; then \ |
262 $(top_srcdir)/mkinstalldirs $(octfiledir) ; \ | 269 $(top_srcdir)/mkinstalldirs $(octfiledir) ; \ |
263 chmod a+rx mk-oct-links ; \ | |
264 xfiles="$(OCT_FILES)" ; \ | 270 xfiles="$(OCT_FILES)" ; \ |
265 for f in $$xfiles ; do \ | 271 for f in $$xfiles ; do \ |
266 $(INSTALL_PROGRAM) $$f $(octfiledir)/$$f; \ | 272 $(INSTALL_PROGRAM) $$f $(octfiledir)/$$f; \ |
267 done ; \ | 273 done ; \ |
268 ./mk-oct-links $(octfiledir) $(addprefix $(srcdir)/, $(DLD_SRC)) ; \ | 274 ./mk-oct-links $(octfiledir) $(addprefix $(srcdir)/, $(DLD_SRC)) ; \ |
341 | 347 |
342 conf-dist: | 348 conf-dist: |
343 ln octave.cc Makefile.in ../`cat ../.fname`/src | 349 ln octave.cc Makefile.in ../`cat ../.fname`/src |
344 .PHONY: conf-dist | 350 .PHONY: conf-dist |
345 | 351 |
352 bin-dist: mk-oct-links | |
353 if [ -n "$(BINDISTFILES)" ]; then \ | |
354 ln $(BINDISTFILES) ../`cat ../.fname`/src ; \ | |
355 fi | |
356 if [ -n "$(OCT_FILES)" ]; then \ | |
357 ./mk-oct-links -p $(octfiledir) \ | |
358 $(addprefix $(srcdir)/, $(DLD_SRC)) \ | |
359 > ../`cat ../.fname`/src/links-to-make ; \ | |
360 fi | |
361 echo $(BINDISTLIBS) >> ../`cat ../.fname`/LIBRARIES | |
362 .PHONY: bin-dist | |
363 | |
346 # Special rules -- these files need special things to be defined. | 364 # Special rules -- these files need special things to be defined. |
347 | 365 |
348 parse.cc : parse.y | 366 parse.cc : parse.y |
349 @echo "expect 13 shift/reduce conflicts" | 367 @echo "expect 13 shift/reduce conflicts" |
350 $(YACC) $(YFLAGS) $< | 368 $(YACC) $(YFLAGS) $< |