Module Name: src
Committed By: dyoung
Date: Wed Apr 6 01:31:20 UTC 2011
Modified Files:
src/sys/arch/landisk: Makefile
Log Message:
Fix target 'tags'.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/landisk/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/landisk/Makefile
diff -u src/sys/arch/landisk/Makefile:1.2 src/sys/arch/landisk/Makefile:1.3
--- src/sys/arch/landisk/Makefile:1.2 Sat Oct 25 22:27:37 2008
+++ src/sys/arch/landisk/Makefile Wed Apr 6 01:31:20 2011
@@ -1,10 +1,16 @@
-# $NetBSD: Makefile,v 1.2 2008/10/25 22:27:37 apb Exp $
+# $NetBSD: Makefile,v 1.3 2011/04/06 01:31:20 dyoung Exp $
# Makefile for landisk tags file and boot blocks
-TLANDISK= ../landisk/tags
-SLANDISK= ../landisk/landisk/*.[ch] ../landisk/include/*.h
-ALANDISK= ../landisk/landisk/*.[sS]
+# Find where SH3 source files are for inclusion in tags
+.include <../sh3/Makefile.inc>
+
+TLANDISK= ${SYSDIR}/arch/landisk/tags
+SLANDISK= ${SYSDIR}/arch/landisk/landisk/*.[ch]
+SLANDISK+= ${SYSDIR}/arch/landisk/include/*.h
+SLANDISK+= ${SYSDIR}/arch/landisk/dev/*.[ch]
+
+ALANDISK= ${SYSDIR}/arch/landisk/landisk/*.S
# Directories in which to place tags links
DLANDISK= landisk include
@@ -12,17 +18,20 @@
.include "../../kern/Make.tags.inc"
tags:
- -ctags -wdtf ${TLANDISK} ${SLANDISK} ${COMM}
- egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALANDISK} | \
+ -rm -f ${TLANDISK}
+ -echo ${SLANDISK} ${SSH3} | xargs ctags -wadtf ${TLANDISK}
+ -${FINDCOMM} | xargs ctags -wadtf ${TLANDISK}
+ egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALANDISK} ${ASH3} | \
${TOOL_SED} -e \
- "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
- >> ${TLANDISK}
+ "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
+ >> ${TLANDISK}
sort -o ${TLANDISK} ${TLANDISK}
links:
-for i in ${DLANDISK}; do \
- (cd $$i && rm -f tags; ln -s ../tags tags); done
+ cd $$i && rm -f tags; ln -s ../tags tags; done
+
-SUBDIR= compile include stand
+SUBDIR= compile include stand
.include <bsd.subdir.mk>