1# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:33 lukem Exp $ 2 3# Makefile for hpcarm tags file and boot blocks 4 5THPCARM= ../hpcarm/tags 6SHPCARM= ../hpcarm/hpcarm/*.[ch] ../hpcarm/include/*.h \ 7 ../hpcarm/dev/*.[ch] ../hpcarm/mainbus/*.[ch] \ 8 ../hpcarm/sa/*.[ch] 9AHPCARM= ../hpcarm/hpcarm/*.s ../hpcarm/sa/*.s 10 11# Directories in which to place tags links 12DHPCARM= dev mainbus include sa 13 14.include "../../kern/Make.tags.inc" 15 16tags: 17 -ctags -wdtf ${THPCARM} ${SHPCARM} ${COMM} 18 egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AHPCARM} | \ 19 ${TOOL_SED} -e \ 20 "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \ 21 >> ${THPCARM} 22 sort -o ${THPCARM} ${THPCARM} 23 24links: 25 -for i in ${DHPCARM}; do \ 26 cd $$i && rm -f tags; ln -s ../tags tags; done 27 28 29SUBDIR= compile include 30 31.include <bsd.subdir.mk> 32