From: Chris Hanson Date: Tue, 16 Jan 1990 19:58:23 +0000 (+0000) Subject: Add new target `install' to simplify installation of Scheme binaries. X-Git-Tag: 20090517-FFI~11593 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=cdc3310ebfec991d724a6c5aed7035e0ef2bf994;p=mit-scheme.git Add new target `install' to simplify installation of Scheme binaries. --- diff --git a/v7/src/microcode/s/hpux.h b/v7/src/microcode/s/hpux.h index 708f06c52..f072fd417 100644 --- a/v7/src/microcode/s/hpux.h +++ b/v7/src/microcode/s/hpux.h @@ -1,9 +1,9 @@ /* -*-C-*- System file for HP-UX -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/s/Attic/hpux.h,v 1.3 1989/07/26 23:59:35 cph Rel $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/s/Attic/hpux.h,v 1.4 1990/01/16 19:57:57 cph Exp $ -Copyright (c) 1989 Massachusetts Institute of Technology +Copyright (c) 1989, 1990 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -48,3 +48,7 @@ MIT in each case. */ #ifndef HAVE_CURSES #define LIBS_SYSTEM -lcurses #endif + +#ifndef INSTALL_PROGRAM +#define INSTALL_PROGRAM cp +#endif diff --git a/v7/src/microcode/unxutl/makefile b/v7/src/microcode/unxutl/makefile index 01a2b51fa..480c9b40e 100644 --- a/v7/src/microcode/unxutl/makefile +++ b/v7/src/microcode/unxutl/makefile @@ -1,7 +1,7 @@ # # Makefile for MIT CScheme microcode. # -# $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/unxutl/Attic/makefile,v 1.7 1989/11/11 19:12:57 jinx Exp $ +# $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/unxutl/Attic/makefile,v 1.8 1990/01/16 19:58:23 cph Exp $ # CPP = cc -E MAKE = make # BSD doesn't have it as a default. @@ -41,6 +41,11 @@ Ppband: xmakefile doppband doppband: $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} Ppband +install: xmakefile doinstall + +doinstall: + $(MAKE) $(MAKEOVERRIDES) -f xmakefile ${MFLAGS} install + # If you have a problem with cc -E here, changing # the definition of CPP above may fix it. xmakefile: ymakefile ymake.script ymake.local cf.h s.h m.h diff --git a/v7/src/microcode/unxutl/y300.lcl b/v7/src/microcode/unxutl/y300.lcl index db02a37a9..589dfd005 100644 --- a/v7/src/microcode/unxutl/y300.lcl +++ b/v7/src/microcode/unxutl/y300.lcl @@ -10,10 +10,13 @@ world: all bchscheme scm6003 everything: world Bintopsb Ppband +install.world: install scm6003 + -mv -f $(BINDIR)/scm6003 $(BINDIR)/scm6003.busy + rm -f $(BINDIR)/scm6003.busy + $(INSTALL) scm6003 $(BINDIR)/scm6003 + scm6003 : $(OBJECTS) $(6003_OBJECTS) @ECHO "#** Re-linking" $@ because of $? - -mv -f $@ $@.busy - rm -f $@.busy $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(6003_OBJECTS) $(6003_LIB) usr6003.c : $(6003_SOURCES) $(SOURCES) usrdef.touch Findprim xmakefile diff --git a/v7/src/microcode/unxutl/ymkfile b/v7/src/microcode/unxutl/ymkfile index a6f89c585..618d1a672 100644 --- a/v7/src/microcode/unxutl/ymkfile +++ b/v7/src/microcode/unxutl/ymkfile @@ -1,8 +1,8 @@ /* -*-C-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/unxutl/Attic/ymkfile,v 1.17 1989/11/30 21:16:41 jinx Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/microcode/unxutl/Attic/ymkfile,v 1.18 1990/01/16 19:57:23 cph Exp $ -Copyright (c) 1989 Massachusetts Institute of Technology +Copyright (c) 1989, 1990 Massachusetts Institute of Technology This material was developed by the Scheme project at the Massachusetts Institute of Technology, Department of Electrical Engineering and @@ -196,6 +196,16 @@ USER_LIBS = SHELL = /bin/sh +#ifdef INSTALL_PROGRAM +INSTALL = INSTALL_PROGRAM +#else +INSTALL = install -c +#endif +#ifdef INSTALL_BINARY_DIRECTORY +BINDIR = INSTALL_BINARY_DIRECTORY +#else +BINDIR = /usr/local/bin +#endif #ifdef ALTERNATE_CC CC = ALTERNATE_CC #else @@ -365,52 +375,44 @@ all: Psbtobin scheme scheme xscheme : $(OBJECTS) $(SCHEME_OBJECTS) @ECHO "#** Re-linking" $@ because of $? - -mv -f $@ $@.busy - rm -f $@.busy $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(SCHEME_OBJECTS) $(SCHEME_LIB) bchscheme : $(BCHOBJECTS) $(SCHEME_OBJECTS) @ECHO "#** Re-linking" $@ because of $? - -mv -f $@ $@.busy - rm -f $@.busy $(CC) $(LDFLAGS) -o $@ $(BCHOBJECTS) $(SCHEME_OBJECTS) $(SCHEME_LIB) Findprim : Findprim.o @ECHO "#** Re-linking" $@ because of $? - -mv -f $@ $@.busy - rm -f $@.busy $(CC) $(LDFLAGS) -o $@ Findprim.o Bintopsb : Bintopsb.o @ECHO "#** Re-linking" $@ because of $? - -mv -f $@ $@.busy - rm -f $@.busy $(CC) $(LDFLAGS) -o $@ Bintopsb.o Psbtobin : Psbtobin.o @ECHO "#** Re-linking" $@ because of $? - -mv -f $@ $@.busy - rm -f $@.busy $(CC) $(LDFLAGS) -o $@ Psbtobin.o Breakup : Breakup.o @ECHO "#** Re-linking" $@ because of $? - -mv -f $@ $@.busy - rm -f $@.busy $(CC) $(LDFLAGS) -o $@ Breakup.o Wsize : Wsize.o @ECHO "#** Re-linking" $@ because of $? - -mv -f $@ $@.busy - rm -f $@.busy $(CC) $(LDFLAGS) -o $@ Wsize.o LIB_MATH LIBS_SYSTEM LIBS_MACHINE LIB_DEBUG LIB_STANDARD Ppband : Ppband.o @ECHO "#** Re-linking" $@ because of $? - -mv -f $@ $@.busy - rm -f $@.busy $(CC) $(LDFLAGS) -o $@ Ppband.o +install: scheme bchscheme + -mv -f $(BINDIR)/scheme $(BINDIR)/scheme.busy + rm -f $(BINDIR)/scheme.busy + $(INSTALL) scheme $(BINDIR)/scheme + -mv -f $(BINDIR)/bchscheme $(BINDIR)/bchscheme.busy + rm -f $(BINDIR)/bchscheme.busy + $(INSTALL) bchscheme $(BINDIR)/bchscheme + /* Primitive table files */ /* The first two are for VMS. */