Makefile revision 1.7
1# $NetBSD: Makefile,v 1.7 2007/12/31 10:45:22 dyoung Exp $ 2 3# Makefile for macppc tags file 4 5TIMACPPC= ${SYSDIR}/arch/macppc/tags 6SIMACPPC= ${SYSDIR}/arch/macppc/macppc/*.[ch] \ 7 ${SYSDIR}/arch/macppc/include/*.h \ 8 ${SYSDIR}/arch/macppc/dev/*.[ch] \ 9 ${SYSDIR}/arch/macppc/pci/*.[ch] \ 10 ${SYSDIR}/contrib/dev/ath/*.[ch] \ 11 ${SYSDIR}/contrib/dev/ath/netbsd/*.[ch] \ 12 ${SYSDIR}/contrib/dev/ath/public/*.[ch] 13SIMACPPC+= ${SYSDIR}/arch/powerpc/powerpc/*.[ch] \ 14 ${SYSDIR}/arch/powerpc/include/*.h \ 15 ${SYSDIR}/arch/powerpc/pci/*.[ch] 16AIMACPPC= ${SYSDIR}/arch/macppc/macppc/*.[sS] 17 18# Directories in which to place tags links 19DIMACPPC= macppc dev include pci 20 21.include "../../kern/Make.tags.inc" 22 23tags: 24 -rm -f ${TIMACPPC} 25 -echo ${SIMACPPC} | xargs ctags -wadtf ${TIMACPPC} 26 -${FINDCOMM} | xargs ctags -wadtf ${TIMACPPC} 27 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AIMACPPC} | \ 28 sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 29 >> ${TIMACPPC} 30 sort -o ${TIMACPPC} ${TIMACPPC} 31 32links: 33 -for i in ${DIMACPPC}; do \ 34 (cd $$i && rm -f tags; ln -s ../tags tags); done 35 36SUBDIR= compile include stand ../powerpc/include 37 38.include <bsd.subdir.mk> 39