Home | History | Annotate | Line # | Download | only in landisk
Makefile revision 1.1
      1 #	$NetBSD: Makefile,v 1.1 2006/09/01 21:26:18 uwe Exp $
      2 
      3 # Makefile for landisk tags file and boot blocks
      4 
      5 TLANDISK=	../landisk/tags
      6 SLANDISK=	../landisk/landisk/*.[ch] ../landisk/include/*.h
      7 ALANDISK=	../landisk/landisk/*.[sS]
      8 
      9 # Directories in which to place tags links
     10 DLANDISK=	landisk include
     11 
     12 .include "../../kern/Make.tags.inc"
     13 
     14 tags:
     15 	-ctags -wdtf ${TLANDISK} ${SLANDISK} ${COMM}
     16 	egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALANDISK} | \
     17 	    sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
     18 		>> ${TLANDISK}
     19 	sort -o ${TLANDISK} ${TLANDISK}
     20 
     21 links:
     22 	-for i in ${DLANDISK}; do \
     23 	    (cd $$i && rm -f tags; ln -s ../tags tags); done
     24 
     25 SUBDIR=	compile include	stand
     26 
     27 .include <bsd.subdir.mk>
     28