home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / sys / i386 / Makefile next >
Encoding:
Makefile  |  1991-06-09  |  588 b   |  25 lines

  1. #    @(#)Makefile    7.3 (Berkeley) 6/9/91
  2.  
  3. # Makefile for i386 tags file
  4.  
  5. all:
  6.     @echo "make tags or links only"
  7.  
  8. TI386=    ../i386/tags
  9. SI386=    ../i386/i386/*.[ch] ../i386/include/*.h ../i386/isa/*.[ch]
  10. AI386=    ../i386/i386/*.s
  11.  
  12. # Directories in which to place i386 tags links
  13. DI386=    eisa isa mca include
  14.  
  15. tags:
  16.     -ctags -dtf ${TI386} ${COMM} ${SI386}
  17.     egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
  18.         sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
  19.         >> ${TI386}
  20.     sort -o ${TI386} ${TI386}
  21.  
  22. links:
  23.     -for i in ${DI386}; do \
  24.         cd $$i && rm -f tags; ln -s ../tags tags; done
  25.