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
8TLANDISK= ${SYSDIR}/arch/landisk/tags
9SLANDISK= ${SYSDIR}/arch/landisk/landisk/*.[ch]
10SLANDISK+=          ${SYSDIR}/arch/landisk/include/*.h
11SLANDISK+=          ${SYSDIR}/arch/landisk/dev/*.[ch]
12
13ALANDISK= ${SYSDIR}/arch/landisk/landisk/*.S
14
15# Directories in which to place tags links
16DLANDISK= landisk include
17
18.include "../../kern/Make.tags.inc"
19
20tags:
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
30links:
31          -for i in ${DLANDISK}; do \
32              cd $$i && rm -f tags; ln -s ../tags tags; done
33
34
35SUBDIR=   compile include stand
36
37.include <bsd.subdir.mk>
38