From: Matt Birkholz Date: Sat, 25 Mar 2017 19:41:08 +0000 (-0700) Subject: Install source code (.scm and .pkg). X-Git-Tag: mit-scheme-pucked-9.2.12~162 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=f66fe6dc6d136af3288f709494fa2f414aea4f39;p=mit-scheme.git Install source code (.scm and .pkg). --- diff --git a/src/compiler/Makefile-fragment b/src/compiler/Makefile-fragment index 83221e23b..65c3b8e37 100644 --- a/src/compiler/Makefile-fragment +++ b/src/compiler/Makefile-fragment @@ -1,36 +1,21 @@ -COMPILER_DIR = $(AUXDIR)/compiler -BACK_DIR = $(COMPILER_DIR)/back -BASE_DIR = $(COMPILER_DIR)/base -FGGEN_DIR = $(COMPILER_DIR)/fggen -FGOPT_DIR = $(COMPILER_DIR)/fgopt -MACHINE_DIR = $(COMPILER_DIR)/machine -MACHINES_DIR = $(COMPILER_DIR)/machines -RTLBASE_DIR = $(COMPILER_DIR)/rtlbase -RTLGEN_DIR = $(COMPILER_DIR)/rtlgen -RTLOPT_DIR = $(COMPILER_DIR)/rtlopt +#-*-Makefile-*- +# compiler/Makefile-fragment -install: - $(mkinstalldirs) $(DESTDIR)$(COMPILER_DIR) - $(mkinstalldirs) $(DESTDIR)$(BACK_DIR) - $(mkinstalldirs) $(DESTDIR)$(BASE_DIR) - $(mkinstalldirs) $(DESTDIR)$(FGGEN_DIR) - $(mkinstalldirs) $(DESTDIR)$(FGOPT_DIR) - $(mkinstalldirs) $(DESTDIR)$(RTLBASE_DIR) - $(mkinstalldirs) $(DESTDIR)$(RTLGEN_DIR) - $(mkinstalldirs) $(DESTDIR)$(RTLOPT_DIR) - $(INSTALL_DATA) compiler-*.pkd $(DESTDIR)$(COMPILER_DIR)/. - cd back ; $(INSTALL_COM) *.com $(DESTDIR)$(BACK_DIR)/. - cd back ; $(INSTALL_DATA) *.bci $(DESTDIR)$(BACK_DIR)/. - cd base ; $(INSTALL_COM) *.com $(DESTDIR)$(BASE_DIR)/. - cd base ; $(INSTALL_DATA) *.bci $(DESTDIR)$(BASE_DIR)/. - cd fggen ; $(INSTALL_COM) *.com $(DESTDIR)$(FGGEN_DIR)/. - cd fggen ; $(INSTALL_DATA) *.bci $(DESTDIR)$(FGGEN_DIR)/. - cd fgopt ; $(INSTALL_COM) *.com $(DESTDIR)$(FGOPT_DIR)/. - cd fgopt ; $(INSTALL_DATA) *.bci $(DESTDIR)$(FGOPT_DIR)/. - cd rtlbase ; $(INSTALL_COM) *.com $(DESTDIR)$(RTLBASE_DIR)/. - cd rtlbase ; $(INSTALL_DATA) *.bci $(DESTDIR)$(RTLBASE_DIR)/. - cd rtlgen ; $(INSTALL_COM) *.com $(DESTDIR)$(RTLGEN_DIR)/. - cd rtlgen ; $(INSTALL_DATA) *.bci $(DESTDIR)$(RTLGEN_DIR)/. - cd rtlopt ; $(INSTALL_COM) *.com $(DESTDIR)$(RTLOPT_DIR)/. - cd rtlopt ; $(INSTALL_DATA) *.bci $(DESTDIR)$(RTLOPT_DIR)/. +DIR = $(AUXDIR)/compiler +install: + rm -rf $(DESTDIR)$(DIR) + $(mkinstalldirs) $(DESTDIR)$(DIR) + set -e ; \ + for D in compiler back base fggen fgopt \ + machine machines rtlbase rtlgen rtlopt ; do \ + $(mkinstalldirs) $(DESTDIR)$(DIR)/$$D ; done + $(INSTALL_DATA) $(srcdir)/*.pkg *.pkd $(DESTDIR)$(DIR)/. + set -e ; \ + for D in back base fggen fgopt rtlbase rtlgen rtlopt ; do \ + ( cd $$D ; \ + $(INSTALL_COM) *.com $(DESTDIR)$(DIR)/$$D/. ; \ + $(INSTALL_DATA) *.bci $(DESTDIR)$(DIR)/$$D/. ) ; \ + ( cd $(srcdir)/$$D ; \ + $(INSTALL_DATA) *.scm $(DESTDIR)$(DIR)/$$D/. ) ; \ + done diff --git a/src/cref/Makefile-fragment b/src/cref/Makefile-fragment index 40966e301..546d5da47 100644 --- a/src/cref/Makefile-fragment +++ b/src/cref/Makefile-fragment @@ -1,6 +1,11 @@ +#-*-Makefile-*- +# cref/Makefile-fragment + TARGET_DIR = $(AUXDIR)/cref install: + rm -rf $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(INSTALL_COM) *.com $(DESTDIR)$(TARGET_DIR)/. $(INSTALL_DATA) *.pkd *.bci $(DESTDIR)$(TARGET_DIR)/. + cd $(srcdir) && $(INSTALL_DATA) *.pkg *.scm $(DESTDIR)$(TARGET_DIR)/. diff --git a/src/ffi/Makefile-fragment b/src/ffi/Makefile-fragment index b2e68b7d4..d705eec69 100644 --- a/src/ffi/Makefile-fragment +++ b/src/ffi/Makefile-fragment @@ -3,11 +3,9 @@ TARGET_DIR = $(AUXDIR)/ffi -# Install the FFI option. install: rm -rf $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(INSTALL_COM) *.com $(DESTDIR)$(TARGET_DIR)/. - $(INSTALL_DATA) *.bci $(DESTDIR)$(TARGET_DIR)/. - $(INSTALL_DATA) ffi-*.pkd $(DESTDIR)$(TARGET_DIR)/. - $(INSTALL_DATA) make.scm $(DESTDIR)$(TARGET_DIR)/. + $(INSTALL_DATA) *.pkd *.bci $(DESTDIR)$(TARGET_DIR)/. + cd $(srcdir) && $(INSTALL_DATA) *.pkg *.scm $(DESTDIR)$(TARGET_DIR)/. diff --git a/src/runtime/Makefile-fragment b/src/runtime/Makefile-fragment index 9ee60714b..a1b50a6d2 100644 --- a/src/runtime/Makefile-fragment +++ b/src/runtime/Makefile-fragment @@ -1,12 +1,11 @@ +#-*-Makefile-*- +# runtime/Makefile-fragment + RUNDIR = $(AUXDIR)/runtime -RUNOPTS = chrsyn cpress format mime-codec numint \ - ordvec process rbtree regexp rexp rgxcmp syncproc wttree ystep install: rm -rf $(DESTDIR)$(RUNDIR) $(mkinstalldirs) $(DESTDIR)$(RUNDIR) - $(INSTALL_DATA) *.pkd *.bci optiondb.scm $(DESTDIR)$(RUNDIR)/. - @for F in $(RUNOPTS); do \ - CMD="$(INSTALL_COM) $${F}.com $(DESTDIR)$(RUNDIR)/.";\ - echo "$${CMD}"; eval "$${CMD}";\ - done + $(INSTALL_DATA) *.pkd *.bci $(DESTDIR)$(RUNDIR)/. + $(INSTALL_COM) *.com $(DESTDIR)$(RUNDIR)/. + cd $(srcdir) && $(INSTALL_DATA) *.pkg *.scm $(DESTDIR)$(RUNDIR)/. diff --git a/src/sf/Makefile-fragment b/src/sf/Makefile-fragment index a67c62c46..9b7bf53c1 100644 --- a/src/sf/Makefile-fragment +++ b/src/sf/Makefile-fragment @@ -1,6 +1,11 @@ +#-*-Makefile-*- +# sf/Makefile-fragment + TARGET_DIR = $(AUXDIR)/sf install: + rm -rf $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(INSTALL_COM) *.com $(DESTDIR)$(TARGET_DIR)/. $(INSTALL_DATA) *.pkd *.bci $(DESTDIR)$(TARGET_DIR)/. + cd $(srcdir) && $(INSTALL_DATA) *.pkg *.scm $(DESTDIR)$(TARGET_DIR)/. diff --git a/src/sos/Makefile-fragment b/src/sos/Makefile-fragment index 03383e4ab..b82228408 100644 --- a/src/sos/Makefile-fragment +++ b/src/sos/Makefile-fragment @@ -1,7 +1,11 @@ +#-*-Makefile-*- +# sos/Makefile-fragment + TARGET_DIR = $(AUXDIR)/sos install: + rm -rf $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(INSTALL_COM) *.com $(DESTDIR)$(TARGET_DIR)/. $(INSTALL_DATA) *.pkd *.bci $(DESTDIR)$(TARGET_DIR)/. - $(INSTALL_DATA) $(srcdir)/load.scm $(DESTDIR)$(TARGET_DIR)/. + cd $(srcdir) && $(INSTALL_DATA) *.pkg *.scm $(DESTDIR)$(TARGET_DIR)/. diff --git a/src/ssp/Makefile-fragment b/src/ssp/Makefile-fragment index ee24ab54a..7068024de 100644 --- a/src/ssp/Makefile-fragment +++ b/src/ssp/Makefile-fragment @@ -1,7 +1,11 @@ +#-*-Makefile-*- +# ssp/Makefile-fragment + SSP_DIR = $(AUXDIR)/ssp install: + rm -rf $(DESTDIR)$(SSP_DIR) $(mkinstalldirs) $(DESTDIR)$(SSP_DIR) $(INSTALL_COM) *.com $(DESTDIR)$(SSP_DIR)/. $(INSTALL_DATA) *.pkd *.bci $(DESTDIR)$(SSP_DIR)/. - $(INSTALL_DATA) $(srcdir)/load.scm $(DESTDIR)$(SSP_DIR)/. + cd $(srcdir) && $(INSTALL_DATA) *.pkg *.scm $(DESTDIR)$(SSP_DIR)/. diff --git a/src/star-parser/Makefile-fragment b/src/star-parser/Makefile-fragment index 2bd4019d1..413f88f0e 100644 --- a/src/star-parser/Makefile-fragment +++ b/src/star-parser/Makefile-fragment @@ -1,7 +1,11 @@ +#-*-Makefile-*- +# star-parser/Makefile-fragment + PARSER_DIR = $(AUXDIR)/star-parser install: + rm -rf $(DESTDIR)$(PARSER_DIR) $(mkinstalldirs) $(DESTDIR)$(PARSER_DIR) $(INSTALL_COM) *.com $(DESTDIR)$(PARSER_DIR)/. $(INSTALL_DATA) *.pkd *.bci $(DESTDIR)$(PARSER_DIR)/. - $(INSTALL_DATA) $(srcdir)/load.scm $(DESTDIR)$(PARSER_DIR)/. + cd $(srcdir) && $(INSTALL_DATA) *.pkg *.scm $(DESTDIR)$(PARSER_DIR)/. diff --git a/src/xdoc/Makefile-fragment b/src/xdoc/Makefile-fragment index 70cec20aa..2cc98ba2e 100644 --- a/src/xdoc/Makefile-fragment +++ b/src/xdoc/Makefile-fragment @@ -1,7 +1,11 @@ +#-*-Makefile-*- +# xdoc/Makefile-fragment + XDOC_DIR = $(AUXDIR)/xdoc install: + rm -rf $(DESTDIR)$(XDOC_DIR) $(mkinstalldirs) $(DESTDIR)$(XDOC_DIR) $(INSTALL_COM) *.com $(DESTDIR)$(XDOC_DIR)/. $(INSTALL_DATA) *.pkd *.bci $(DESTDIR)$(XDOC_DIR)/. - $(INSTALL_DATA) $(srcdir)/load.scm $(DESTDIR)$(XDOC_DIR)/. + cd $(srcdir) && $(INSTALL_DATA) *.pkg *.scm $(DESTDIR)$(XDOC_DIR)/. diff --git a/src/xml/Makefile-fragment b/src/xml/Makefile-fragment index ed7c2a7dd..c24655889 100644 --- a/src/xml/Makefile-fragment +++ b/src/xml/Makefile-fragment @@ -1,7 +1,11 @@ +#-*-Makefile-*- +# xml/Makefile-fragment + TARGET_DIR = $(AUXDIR)/xml install: + rm -rf $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(INSTALL_COM) *.com $(DESTDIR)$(TARGET_DIR)/. $(INSTALL_DATA) *.pkd *.bci $(DESTDIR)$(TARGET_DIR)/. - $(INSTALL_DATA) $(srcdir)/load.scm $(DESTDIR)$(TARGET_DIR)/. + cd $(srcdir) && $(INSTALL_DATA) *.pkg *.scm $(DESTDIR)$(TARGET_DIR)/.