upgrade to 4.4-Lite Makefile, keeping local changes. NOW BUILDS TAGS ON INST

This commit is contained in:
cgd 1995-02-25 03:31:42 +00:00
parent 3f45f31f15
commit 76e7b276d3
1 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# from: @(#)Makefile 5.2 (Berkeley) 3/5/91
# $Id: Makefile,v 1.35 1995/02/13 21:57:24 cgd Exp $
# $NetBSD: Makefile,v 1.36 1995/02/25 03:31:42 cgd Exp $
# @(#)Makefile 8.2 (Berkeley) 2/3/94
#
# All library objects contain sccsid strings by default; they may be
# excluded as a space-saving measure. To produce a library that does
@ -20,6 +20,7 @@ AINC= -I${.CURDIR}/arch/${MACHINE_ARCH}
.if defined(DESTDIR)
AINC+= -nostdinc -idirafter ${DESTDIR}/usr/include
.endif
CLEANFILES+=tags
.if exists (${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc)
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
@ -77,4 +78,13 @@ rm-from-libkern:
for i in ${KMSRCS}; do rm -f ${LIBKERN}/arch/${MACHINE_ARCH}/$$i; done
.endif
beforeinstall: tags
install -c -o bin -g bin -m 444 tags /var/db/libc.tags
tags: ${SRCS}
ctags ${.ALLSRC:M*.c}
egrep -o "^ENTRY(.*)|^FUNC(.*)|^SYSCALL(.*)" ${.ALLSRC:M*.S} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> tags; sort -o tags tags
.include <bsd.lib.mk>