Don't delete compiler-unx.c for c-clean rule.
authorChris Hanson <org/chris-hanson/cph>
Sat, 14 Apr 2007 03:55:26 +0000 (03:55 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 14 Apr 2007 03:55:26 +0000 (03:55 +0000)
v7/src/compiler/Clean.sh

index de241d62ad040754bd5af70defa1cc95976d5702..1b16880334634dc683582f1f900614e9ea31fb1f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $Id: Clean.sh,v 1.15 2007/04/07 04:02:22 cph Exp $
+# $Id: Clean.sh,v 1.16 2007/04/14 03:55:26 cph Exp $
 #
 # Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
 #     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
@@ -35,7 +35,6 @@ TOPDIR=${TOPDIR:-`pwd`/..}
 export TOPDIR
 CLEANSH=${TOPDIR}/etc/Clean.sh
 "${CLEANSH}" "${1}" rm-pkg
-rm -f compiler-unx.c compiler-unx.o
 
 case "${1}" in
 c-clean)
@@ -60,6 +59,15 @@ distclean | maintainer-clean | c-clean)
     ;;
 esac
 
+rm -f compiler-unx.o
+case "${1}" in
+c-clean)
+    ;;
+*)
+    rm -f compiler-unx.c
+    ;;
+esac
+
 case "${1}" in
 maintainer-clean)
     rm -f machines/vax/dinstr[123].scm