use mkdep(1)
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 14 Aug 1987 04:10:36 +0000 (20:10 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Fri, 14 Aug 1987 04:10:36 +0000 (20:10 -0800)
SCCS-vsn: sys/tahoe/conf/Makefile.tahoe 1.13
SCCS-vsn: sys/vax/conf/Makefile.vax 7.7

usr/src/sys/tahoe/conf/Makefile.tahoe
usr/src/sys/vax/conf/Makefile.vax

index cd06ea5..77bb498 100644 (file)
@@ -1,4 +1,4 @@
-#      @(#)Makefile.tahoe      1.12 (Berkeley) %G%
+#      @(#)Makefile.tahoe      1.13 (Berkeley) %G%
 #
 # Makefile for 4.3 BSD
 #
 #
 # Makefile for 4.3 BSD
 #
@@ -82,20 +82,7 @@ assym.s: ../h/param.h ../tahoe/pte.h ../h/buf.h ../h/vmparam.h \
        ./a.out >assym.s; rm -f a.out
 
 depend:        assym.s
        ./a.out >assym.s; rm -f a.out
 
 depend:        assym.s
-       ${CC} -M ${COPTS} ${CFILES} | \
-       sed -e ':loop' \
-           -e 's/\.\.\/[^ /]*\/\.\./../' \
-           -e 't loop' | \
-       awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
-               else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
-                      else rec = rec " " $$2 } } \
-             END { print rec } ' > makedep
-       echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
-       echo '$$r makedep' >>eddep
-       echo 'w' >>eddep
-       cp Makefile Makefile.bak
-       ex - Makefile < eddep
-       rm eddep makedep
+       mkdep ${COPTS} ${CFILES}
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
index 190f6dd..b95748d 100644 (file)
@@ -3,7 +3,7 @@
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)Makefile.vax        7.6 (Berkeley) %G%
+#      @(#)Makefile.vax        7.7 (Berkeley) %G%
 #
 # Makefile for 4.3 BSD
 #
 #
 # Makefile for 4.3 BSD
 #
@@ -99,21 +99,7 @@ assym.s: ../h/param.h ../machine/pte.h ../h/buf.h ../h/vmparam.h \
        ./a.out >assym.s; rm -f a.out
 
 depend:        assym.s
        ./a.out >assym.s; rm -f a.out
 
 depend:        assym.s
-       ${CC} -M ${COPTS} ${CFILES} | \
-       sed -e ':loop' \
-           -e 's/\.\.\/[^ /]*\/\.\./../' \
-           -e 't loop' | \
-       awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
-               else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
-                      else rec = rec " " $$2 } } \
-             END { print rec } ' > makedep
-       echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
-       echo '$$r makedep' >>eddep
-       echo 'w' >>eddep
-       cp Makefile Makefile.bak
-       ex - Makefile < eddep
-       rm eddep makedep
-
+       mkdep ${COPTS} ${CFILES}
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \
 
 links:
        egrep '#if' ${CFILES} | sed -f ../conf/defines | \