Use autoconf for top-level Makefile.
authorChris Hanson <org/chris-hanson/cph>
Fri, 8 Dec 2000 18:24:09 +0000 (18:24 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 8 Dec 2000 18:24:09 +0000 (18:24 +0000)
v7/src/Clean.sh
v7/src/Setup.sh

index 8f7085d283be9e2fdda6407137e504dbf4d832d8..2bcd3a95cd318af5513395576359536c0f79c701 100755 (executable)
@@ -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
index 0a770b9c91bf0382d65b54234059c0441de41c78..5d62975aa4d244245342a3d933c67a8fbbb58600 100755 (executable)
@@ -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=""