Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/landisk Fix target 'tags'.
details: https://anonhg.NetBSD.org/src/rev/e2bee3c23bb7
branches: trunk
changeset: 763864:e2bee3c23bb7
user: dyoung <dyoung%NetBSD.org@localhost>
date: Wed Apr 06 01:31:20 2011 +0000
description:
Fix target 'tags'.
diffstat:
sys/arch/landisk/Makefile | 29 +++++++++++++++++++----------
1 files changed, 19 insertions(+), 10 deletions(-)
diffs (51 lines):
diff -r 4db565e9c9f6 -r e2bee3c23bb7 sys/arch/landisk/Makefile
--- a/sys/arch/landisk/Makefile Wed Apr 06 01:25:18 2011 +0000
+++ b/sys/arch/landisk/Makefile Wed Apr 06 01:31:20 2011 +0000
@@ -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>
Home |
Main Index |
Thread Index |
Old Index