BSD 4_4 release
[unix-history] / usr / src / sys / i386 / Makefile
index 747a80e..e057d54 100644 (file)
@@ -1,19 +1,27 @@
-#      @(#)Makefile    7.6 (Berkeley) %G%
+#      @(#)Makefile    8.1 (Berkeley) 6/11/93
 
 
-# Makefile for i386 tags file
+# Makefile for i386 links, tags file
 
 .include "../kern/Make.tags.inc"
 
 all:
 
 .include "../kern/Make.tags.inc"
 
 all:
-       @echo "make tags only"
+       @echo "make links or tags only"
 
 
-I386=  /sys/i386/conf/*.[ch] /sys/i386/eisa/*.[ch] /sys/i386/i386/*.[ch] \
+DIRS=  conf eisa floppy i386 include isa mca scripts
+
+links::
+       -for i in ${DIRS}; do \
+           (cd $$i && { rm -f tags; ln -s ${SYSTAGS} tags; }) done
+
+I386=  /sys/i386/eisa/*.[ch] /sys/i386/i386/*.[ch] \
        /sys/i386/include/*.[ch] /sys/i386/isa/*.[ch]
 AI386= /sys/i386/i386/*.s
 
 tags::
        /sys/i386/include/*.[ch] /sys/i386/isa/*.[ch]
 AI386= /sys/i386/i386/*.s
 
 tags::
-       -ctags -dt ${COMM} ${I386}
+       -ctags -wdt ${COMM} ${I386}
        egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
            sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
                >> tags
        sort -o tags tags
        egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
            sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
                >> tags
        sort -o tags tags
+       chown bin.wsrc tags
+       chmod 444 tags