From: Chris Hanson Date: Fri, 8 Dec 2000 21:01:23 +0000 (+0000) Subject: Rewrite makefiles for new regime. X-Git-Tag: 20090517-FFI~3071 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=2ea2cf0c6da2110bded0c4af4b7debd2001be6ce;p=mit-scheme.git Rewrite makefiles for new regime. --- diff --git a/v7/doc/Makefile.in b/v7/doc/Makefile.in index 90ccab744..fe564a42c 100644 --- a/v7/doc/Makefile.in +++ b/v7/doc/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.1 2000/12/08 20:14:24 cph Exp $ +# $Id: Makefile.in,v 1.2 2000/12/08 21:01:23 cph Exp $ # # Copyright (c) 2000 Massachusetts Institute of Technology # @@ -55,21 +55,49 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs # **** END BOILERPLATE **** +htmldir = @htmldir@ +pdfdir = @pdfdir@ +psdir = @psdir@ +INST_TARGETS = @INST_TARGETS@ + SUBDIRS = imail ref-manual sos user-manual +DISTCLEAN_FILES = Makefile */Makefile config.cache config.log config.status + +all: + @for D in $(SUBDIRS); do \ + echo "making $@ in $${D}";\ + ( cd $${D} && $(MAKE) $@ ) || exit 1;\ + done + +mostlyclean: + @for D in $(SUBDIRS); do \ + echo "making $@ in $${D}";\ + ( cd $${D} && $(MAKE) $@ ) || exit 1;\ + done + +clean: + @for D in $(SUBDIRS); do \ + echo "making $@ in $${D}";\ + ( cd $${D} && $(MAKE) $@ ) || exit 1;\ + done -htmldir = $(libdir)/mit-scheme/doc -pdfdir = $(libdir)/mit-scheme/doc -psdir = $(libdir)/mit-scheme/doc +distclean: + @for D in $(SUBDIRS); do \ + echo "making $@ in $${D}";\ + ( cd $${D} && $(MAKE) $@ ) || exit 1;\ + done + rm -f $(DISTCLEAN_FILES) -all mostlyclean clean distclean maintainer-clean: +maintainer-clean: @for D in $(SUBDIRS); do \ echo "making $@ in $${D}";\ ( cd $${D} && $(MAKE) $@ ) || exit 1;\ done + rm -f $(DISTCLEAN_FILES) configure tags TAGS: -install: install-info install-html install-pdf install-ps +install: install-info $(INST_TARGETS) install-info: $(mkinstalldirs) $(DESTDIR)$(infodir) diff --git a/v7/doc/configure.in b/v7/doc/configure.in index 367bab4ec..847cd9fb7 100644 --- a/v7/doc/configure.in +++ b/v7/doc/configure.in @@ -16,11 +16,51 @@ dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -AC_REVISION([$Id: configure.in,v 1.1 2000/12/08 20:14:24 cph Exp $]) +AC_REVISION([$Id: configure.in,v 1.2 2000/12/08 21:01:23 cph Exp $]) AC_INIT(ref-manual/scheme.texinfo) AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET -AC_OUTPUT(Makefile) +INST_TARGETS= + +enable_html=yes +AC_ARG_ENABLE(html, [generate HTML documentation]) +if test "${enable_html}" = "yes"; then + htmldir="${libdir}/mit-scheme/doc" +elif test "${enable_html}" = "no"; then + htmldir= +else + htmldir="${enable_html}" +fi +test "${htmldir}" = "" || INST_TARGETS="${INST_TARGETS} install-html" +AC_SUBST(htmldir) + +enable_pdf=yes +AC_ARG_ENABLE(pdf, [generate PDF documentation]) +if test "${enable_pdf}" = "yes"; then + pdfdir="${libdir}/mit-scheme/doc" +elif test "${enable_pdf}" = "no"; then + pdfdir= +else + pdfdir="${enable_pdf}" +fi +test "${pdfdir}" = "" || INST_TARGETS="${INST_TARGETS} install-pdf" +AC_SUBST(pdfdir) + +enable_ps=yes +AC_ARG_ENABLE(ps, [generate Postscript documentation]) +if test "${enable_ps}" = "yes"; then + psdir="${libdir}/mit-scheme/doc" +elif test "${enable_ps}" = "no"; then + psdir= +else + psdir="${enable_ps}" +fi +test "${psdir}" = "" || INST_TARGETS="${INST_TARGETS} install-ps" +AC_SUBST(psdir) + +AC_SUBST(INST_TARGETS) + +AC_OUTPUT(Makefile imail/Makefile ref-manual/Makefile sos/Makefile user-manual/Makefile) diff --git a/v7/doc/imail/Makefile b/v7/doc/imail/Makefile.in similarity index 71% rename from v7/doc/imail/Makefile rename to v7/doc/imail/Makefile.in index d86f03d8a..75ec8cdad 100644 --- a/v7/doc/imail/Makefile +++ b/v7/doc/imail/Makefile.in @@ -1,5 +1,5 @@ -# $Id: Makefile,v 1.10 2000/12/08 20:14:24 cph Exp $ +# $Id: Makefile.in,v 1.1 2000/12/08 21:01:23 cph Exp $ # # Copyright (c) 2000 Massachusetts Institute of Technology # @@ -17,6 +17,49 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# **** BEGIN BOILERPLATE **** + +SHELL = @SHELL@ + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include + +DESTDIR = +top_builddir = . + +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ + +LN_S = @LN_S@ +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + +# **** END BOILERPLATE **** + +htmldir = @htmldir@ +pdfdir = @pdfdir@ +psdir = @psdir@ + all: imail.info imail.html imail.pdf imail.ps imail.info: imail.texinfo gfdl.texinfo diff --git a/v7/doc/mkinstalldirs b/v7/doc/mkinstalldirs new file mode 100755 index 000000000..b66d5b591 --- /dev/null +++ b/v7/doc/mkinstalldirs @@ -0,0 +1,40 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman +# Created: 1993-05-16 +# Public domain + +# $Id: mkinstalldirs,v 1.1 2000/12/08 21:01:23 cph Exp $ + +errstatus=0 + +for file +do + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` + shift + + pathcomp= + for d + do + pathcomp="$pathcomp$d" + case "$pathcomp" in + -* ) pathcomp=./$pathcomp ;; + esac + + if test ! -d "$pathcomp"; then + echo "mkdir $pathcomp" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# mkinstalldirs ends here diff --git a/v7/doc/ref-manual/Makefile b/v7/doc/ref-manual/Makefile.in similarity index 71% rename from v7/doc/ref-manual/Makefile rename to v7/doc/ref-manual/Makefile.in index 9b6c7917e..1fc610993 100644 --- a/v7/doc/ref-manual/Makefile +++ b/v7/doc/ref-manual/Makefile.in @@ -1,5 +1,5 @@ -# $Id: Makefile,v 1.5 2000/12/08 20:14:24 cph Exp $ +# $Id: Makefile.in,v 1.1 2000/12/08 21:01:23 cph Exp $ # # Copyright (c) 2000 Massachusetts Institute of Technology # @@ -17,6 +17,49 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# **** BEGIN BOILERPLATE **** + +SHELL = @SHELL@ + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include + +DESTDIR = +top_builddir = . + +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ + +LN_S = @LN_S@ +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + +# **** END BOILERPLATE **** + +htmldir = @htmldir@ +pdfdir = @pdfdir@ +psdir = @psdir@ + all: scheme.info scheme.html scheme.pdf scheme.ps scheme.info: scheme.texinfo gfdl.texinfo diff --git a/v7/doc/sos/Makefile b/v7/doc/sos/Makefile.in similarity index 70% rename from v7/doc/sos/Makefile rename to v7/doc/sos/Makefile.in index e3d90066f..54c36cf18 100644 --- a/v7/doc/sos/Makefile +++ b/v7/doc/sos/Makefile.in @@ -1,5 +1,5 @@ -# $Id: Makefile,v 2.6 2000/12/08 20:14:24 cph Exp $ +# $Id: Makefile.in,v 2.1 2000/12/08 21:01:23 cph Exp $ # # Copyright (c) 2000 Massachusetts Institute of Technology # @@ -17,6 +17,49 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# **** BEGIN BOILERPLATE **** + +SHELL = @SHELL@ + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include + +DESTDIR = +top_builddir = . + +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ + +LN_S = @LN_S@ +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + +# **** END BOILERPLATE **** + +htmldir = @htmldir@ +pdfdir = @pdfdir@ +psdir = @psdir@ + all: sos.info sos.html sos.pdf sos.ps sos.info: sos.texinfo gfdl.texinfo diff --git a/v7/doc/user-manual/Makefile b/v7/doc/user-manual/Makefile.in similarity index 71% rename from v7/doc/user-manual/Makefile rename to v7/doc/user-manual/Makefile.in index 592cb0bde..7bce33115 100644 --- a/v7/doc/user-manual/Makefile +++ b/v7/doc/user-manual/Makefile.in @@ -1,5 +1,5 @@ -# $Id: Makefile,v 1.8 2000/12/08 20:14:24 cph Exp $ +# $Id: Makefile.in,v 1.1 2000/12/08 21:01:23 cph Exp $ # # Copyright (c) 2000 Massachusetts Institute of Technology # @@ -17,6 +17,49 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# **** BEGIN BOILERPLATE **** + +SHELL = @SHELL@ + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include + +DESTDIR = +top_builddir = . + +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ + +LN_S = @LN_S@ +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs + +# **** END BOILERPLATE **** + +htmldir = @htmldir@ +pdfdir = @pdfdir@ +psdir = @psdir@ + all: user.info user.html user.pdf user.ps user.info: user.texinfo gfdl.texinfo