From 8e0a3a2cc79202ccd24966f361601e922d6f0bc3 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Fri, 8 Dec 2000 18:24:09 +0000 Subject: [PATCH] Use autoconf for top-level Makefile. --- v7/src/Clean.sh | 35 +++++++++++++++++++++++++---------- v7/src/Setup.sh | 5 +++-- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/v7/src/Clean.sh b/v7/src/Clean.sh index 8f7085d28..2bcd3a95c 100755 --- a/v7/src/Clean.sh +++ b/v7/src/Clean.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: Clean.sh,v 1.3 2000/12/08 18:15:46 cph Exp $ +# $Id: Clean.sh,v 1.4 2000/12/08 18:20:24 cph Exp $ # # Copyright (c) 2000 Massachusetts Institute of Technology # @@ -29,16 +29,23 @@ fi COMMAND=$1 shift +FULL=no +DIST=no +MAINTAINER=no case "${COMMAND}" in mostlyclean) ;; -clean | distclean) - echo "rm -f lib/*.com" - rm -f lib/*.com +clean) + FULL=yes + ;; +distclean) + FULL=yes + DIST=yes ;; maintainer-clean) - echo "rm -rf lib" - rm -rf lib + FULL=yes + DIST=yes + MAINTAINER=yes ;; *) echo "$0: Unknown command ${COMMAND}" @@ -46,12 +53,20 @@ maintainer-clean) ;; esac -case "${COMMAND}" in -distclean | maintainer-clean) +if [ ${FULL} = yes ]; then + echo "rm -f lib/*.com" + rm -f lib/*.com +fi + +if [ ${DIST} = yes ]; then echo "rm -f Makefile config.cache config.log config.status" rm -f Makefile config.cache config.log config.status - ;; -esac +fi + +if [ ${MAINTAINER} = yes ]; then + echo "rm -rf configure lib" + rm -rf configure lib +fi for SUBDIR; do if test -x ${SUBDIR}/Clean.sh; then diff --git a/v7/src/Setup.sh b/v7/src/Setup.sh index 0a770b9c9..5d62975aa 100755 --- a/v7/src/Setup.sh +++ b/v7/src/Setup.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: Setup.sh,v 1.5 2000/12/08 18:04:12 cph Exp $ +# $Id: Setup.sh,v 1.6 2000/12/08 18:24:09 cph Exp $ # # Copyright (c) 2000 Massachusetts Institute of Technology # @@ -38,7 +38,8 @@ maybe_link lib/utabmd.bin ../microcode/utabmd.bin # lib/edwin maybe_mkdir lib/edwin maybe_mkdir lib/edwin/etc -maybe_mkdir lib/edwin/info +maybe_link lib/edwin/etc/TUTORIAL ../../../etc/TUTORIAL +maybe_link lib/edwin/etc/mime.types ../../../etc/mime.types maybe_link lib/edwin/autoload ../../edwin SUBDIRS="" -- 2.25.1