Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / xen / Makefile
blobaeab4a2bc222eef6af68689a651200542cb48c5a
1 # $NetBSD: Makefile,v 1.7 2009/05/20 03:41:25 dyoung Exp $
3 .include <bsd.own.mk>
5 # Makefile for xen tags file
7 .include "../../kern/Make.tags.inc"
9 .ifmake tags
10 .include "${SYSDIR}/arch/xen/conf/Makefile.arch.inc"
11 .endif
13 TXEN= ${SYSDIR}/arch/xen/tags
15 SXEN!= ${TOOL_AWK} '/^\#/ { next } ($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
16 ${SYSDIR}/arch/xen/conf/files.xen
17 SXEN+= ${SYSDIR}/arch/xen/include/*.h
18 SXEN+= ${SYSDIR}/arch/xen/include/*/*.h
19 SXEN+= ${SYSDIR}/arch/xen/include/*/*/*.h
20 AXEN!= ${TOOL_AWK} '/^\#/ { next } ($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
21 ${SYSDIR}/arch/xen/conf/files.xen
22 AXEN+= ${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS]
24 # Directories in which to place tags links
25 DXEN= xen ${XEN_MACHINE_ARCHS} include
27 tags:
28 -rm -f ${TXEN}
29 -echo ${SXEN} | xargs ctags -wadtf ${TXEN}
30 ${FINDCOMM} | xargs ctags -wadtf ${TXEN}
31 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \
32 ${TOOL_SED} -e \
33 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
34 >> ${TXEN}
35 sort -o ${TXEN} ${TXEN}
37 links:
38 -for i in ${DXEN}; do \
39 (cd $$i && rm -f tags; ln -s ../tags tags); done
42 SUBDIR= compile include
44 .include <bsd.subdir.mk>