Mercurial > hg > octave-avbm
changeset 665:2aeae851a164
[project @ 1994-09-06 21:01:54 by jwe]
author | jwe |
---|---|
date | Tue, 06 Sep 1994 21:01:54 +0000 |
parents | 7d86cace6e7f |
children | fb4f6556b443 |
files | scripts/Makefile.in |
diffstat | 1 files changed, 10 insertions(+), 27 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/Makefile.in +++ b/scripts/Makefile.in @@ -18,50 +18,33 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ -SOURCES = computer.in *.m +SOURCES = *.m DISTFILES = Makefile.in $(SOURCES) # Complete directory trees to distribute. DISTDIRS = amr-image -MFILES = $(wildcard $(srcdir)/*.m) -MFILES_NO_DIR = $(notdir $(MFILES)) +FCN_FILES = $(wildcard $(srcdir)/*.m) +FCN_FILES_NO_DIR = $(notdir $(FCN_FILES)) -all: computer.m +all: .PHONY: all -computer.m: computer.in - rm -f computer.m - if test "$(target_host_type)" = unknown ; then \ - sed -e "s/%target_host_type%/Hi Dave, I'm a HAL-9000/" \ - $(srcdir)/computer.in > computer.t ; \ - else \ - sed -e "s/%target_host_type%/$(target_host_type)/" \ - $(srcdir)/computer.in > computer.t ; \ - fi - mv computer.t computer.m - -check: all -.PHONY: check - install: all - if test -d $(libsubdir) ; then true ; \ - else $(TOPDIR)/mkpath $(libsubdir) ; fi - for f in $(MFILES_NO_DIR) ; do \ - rm -f $(libdir)/$$f ; \ - $(INSTALL_DATA) $(srcdir)/$$f $(libsubdir)/$$f ; \ + if test -d $(fcnfiledir) ; then true ; \ + else $(TOPDIR)/mkpath $(fcnfiledir) ; fi + for f in $(FCN_FILES_NO_DIR) ; do \ + rm -f $(fcnfiledir)/$$f ; \ + $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$$f ; \ done - rm -f $(libsubdir)/computer.m - $(INSTALL_DATA) computer.m $(libsubdir)/computer.m .PHONY: install uninstall: - for f in $(MFILES_NO_DIR) ; do rm -f $(libsubdir)/$$f ; done + for f in $(FCN_FILES_NO_DIR) ; do rm -f $(fcnfiledir)/$$f ; done .PHONY: uninstall clean: - rm -f computer.m computer.t .PHONY: clean tags: $(SOURCES)