NetBSD/sys/arch/macppc/Makefile

40 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2008/10/25 22:27:37 apb Exp $
# Makefile for macppc tags file
TIMACPPC= ${SYSDIR}/arch/macppc/tags
SIMACPPC= ${SYSDIR}/arch/macppc/macppc/*.[ch] \
${SYSDIR}/arch/macppc/include/*.h \
${SYSDIR}/arch/macppc/dev/*.[ch] \
${SYSDIR}/arch/macppc/pci/*.[ch] \
${SYSDIR}/contrib/dev/ath/*.[ch] \
${SYSDIR}/contrib/dev/ath/netbsd/*.[ch] \
${SYSDIR}/contrib/dev/ath/public/*.[ch]
SIMACPPC+= ${SYSDIR}/arch/powerpc/powerpc/*.[ch] \
${SYSDIR}/arch/powerpc/include/*.h \
${SYSDIR}/arch/powerpc/pci/*.[ch]
AIMACPPC= ${SYSDIR}/arch/macppc/macppc/*.[sS]
# Directories in which to place tags links
DIMACPPC= macppc dev include pci
.include "../../kern/Make.tags.inc"
tags:
-rm -f ${TIMACPPC}
-echo ${SIMACPPC} | xargs ctags -wadtf ${TIMACPPC}
-${FINDCOMM} | xargs ctags -wadtf ${TIMACPPC}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AIMACPPC} | \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TIMACPPC}
sort -o ${TIMACPPC} ${TIMACPPC}
links:
-for i in ${DIMACPPC}; do \
(cd $$i && rm -f tags; ln -s ../tags tags); done
SUBDIR= compile include stand ../powerpc/include
.include <bsd.subdir.mk>