Home | History | Annotate | Line # | Download | only in landisk
      1 #	$NetBSD: Makefile,v 1.3 2011/04/06 01:31:20 dyoung Exp $
      2 
      3 # Makefile for landisk tags file and boot blocks
      4 
      5 # Find where SH3 source files are for inclusion in tags
      6 .include <../sh3/Makefile.inc>
      7 
      8 TLANDISK=	${SYSDIR}/arch/landisk/tags
      9 SLANDISK=	${SYSDIR}/arch/landisk/landisk/*.[ch]
     10 SLANDISK+=	${SYSDIR}/arch/landisk/include/*.h
     11 SLANDISK+=	${SYSDIR}/arch/landisk/dev/*.[ch]
     12 
     13 ALANDISK=	${SYSDIR}/arch/landisk/landisk/*.S
     14 
     15 # Directories in which to place tags links
     16 DLANDISK=	landisk include
     17 
     18 .include "../../kern/Make.tags.inc"
     19 
     20 tags:
     21 	-rm -f ${TLANDISK}
     22 	-echo ${SLANDISK} ${SSH3} | xargs ctags -wadtf ${TLANDISK}
     23 	-${FINDCOMM} | xargs ctags -wadtf ${TLANDISK}
     24 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALANDISK} ${ASH3} | \
     25 	    ${TOOL_SED} -e \
     26 		"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3	\1	/^\2(\3\4$$/;" \
     27 	    >> ${TLANDISK}
     28 	sort -o ${TLANDISK} ${TLANDISK}
     29 
     30 links:
     31 	-for i in ${DLANDISK}; do \
     32 	    cd $$i && rm -f tags; ln -s ../tags tags; done
     33 
     34 
     35 SUBDIR=	compile include stand
     36 
     37 .include <bsd.subdir.mk>
     38