NetBSD/sys/arch/xen/Makefile
apb 96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00

38 lines
947 B
Makefile

# $NetBSD: Makefile,v 1.4 2008/10/19 22:05:22 apb Exp $
# Makefile for xen tags file
.include "../../kern/Make.tags.inc"
.ifmake tags
.include "${SYSDIR}/arch/xen/conf/Makefile.arch.inc"
.endif
TXEN= ${SYSDIR}/arch/xen/tags
SXEN!= ${TOOL_AWK} '($$2 ~ /^arch.*\.[c]$$/) {print "${SYSDIR}/" $$2}' \
${SYSDIR}/arch/xen/conf/files.xen
AXEN!= ${TOOL_AWK} '($$2 ~ /^arch.*\.[sS]$$/) {print "${SYSDIR}/" $$2}' \
${SYSDIR}/arch/xen/conf/files.xen
AXEN+= ${SYSDIR}/arch/xen/${XEN_BUILD}/*.[sS]
# Directories in which to place tags links
DXEN= xen ${XEN_MACHINE_ARCHS} include
tags:
rm -f ${TXEN}
-echo ${SXEN} ${COMM} | xargs ctags -wadtf ${TXEN}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AXEN} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TXEN}
sort -o ${TXEN} ${TXEN}
links:
-for i in ${DXEN}; do \
(cd $$i && rm -f tags; ln -s ../tags tags); done
SUBDIR= compile include
.include <bsd.subdir.mk>