Rewrite makefiles for new regime.
authorChris Hanson <org/chris-hanson/cph>
Fri, 8 Dec 2000 21:01:23 +0000 (21:01 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 8 Dec 2000 21:01:23 +0000 (21:01 +0000)
v7/doc/Makefile.in
v7/doc/configure.in
v7/doc/imail/Makefile.in [moved from v7/doc/imail/Makefile with 71% similarity]
v7/doc/mkinstalldirs [new file with mode: 0755]
v7/doc/ref-manual/Makefile.in [moved from v7/doc/ref-manual/Makefile with 71% similarity]
v7/doc/sos/Makefile.in [moved from v7/doc/sos/Makefile with 70% similarity]
v7/doc/user-manual/Makefile.in [moved from v7/doc/user-manual/Makefile with 71% similarity]

index 90ccab744c5245de0bceeda2238ae6082e8f3074..fe564a42cf905f3718c2b7adde9c4078e04542c4 100644 (file)
@@ -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)
index 367bab4ec3209c5f41d597e4a122e939810865c0..847cd9fb75f79d378856f9ec65d78f3f0eb3ea37 100644 (file)
@@ -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)
similarity index 71%
rename from v7/doc/imail/Makefile
rename to v7/doc/imail/Makefile.in
index d86f03d8ae9ca078db9b99838a84fc8d98bf7e68..75ec8cdad698bacba18773bb77250917a0f4bebc 100644 (file)
@@ -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
 #
 # 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 (executable)
index 0000000..b66d5b5
--- /dev/null
@@ -0,0 +1,40 @@
+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+# Author: Noah Friedman <friedman@prep.ai.mit.edu>
+# 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
similarity index 71%
rename from v7/doc/ref-manual/Makefile
rename to v7/doc/ref-manual/Makefile.in
index 9b6c7917e37029d4fe0da19269723129610b0a08..1fc610993970326e890b870ba608c3480498a9d5 100644 (file)
@@ -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
 #
 # 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
similarity index 70%
rename from v7/doc/sos/Makefile
rename to v7/doc/sos/Makefile.in
index e3d90066f902fc25dbf00378aba8a5d55f7b0c38..54c36cf18d7a4f235e51f6bfb2354e82f10acf06 100644 (file)
@@ -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
 #
 # 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
similarity index 71%
rename from v7/doc/user-manual/Makefile
rename to v7/doc/user-manual/Makefile.in
index 592cb0bde12dc201aadacfee0641d58e2cbfa557..7bce3311501db663b94e5df5a5b39d7f35a01420 100644 (file)
@@ -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
 #
 # 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