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