summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordownsj <downsj@openbsd.org>1998-06-09 19:29:45 +0000
committerdownsj <downsj@openbsd.org>1998-06-09 19:29:45 +0000
commitaf1d58d7d536193db43940640c9cf665f319c06b (patch)
treed81645b30974bafe0ebe8e46c0e3efb5462b9d16
parentdo not permit ptrace attach to immutable executable (diff)
downloadwireguard-openbsd-af1d58d7d536193db43940640c9cf665f319c06b.tar.xz
wireguard-openbsd-af1d58d7d536193db43940640c9cf665f319c06b.zip
Add CTAGS, with a full pathname, and use it.
-rw-r--r--share/mk/bsd.dep.mk4
-rw-r--r--share/mk/sys.mk4
2 files changed, 5 insertions, 3 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index af22772e367..7ad84b4462a 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.dep.mk,v 1.3 1996/03/05 11:12:37 mickey Exp $
+# $OpenBSD: bsd.dep.mk,v 1.4 1998/06/09 19:29:45 downsj Exp $
# $NetBSD: bsd.dep.mk,v 1.12 1995/09/27 01:15:09 christos Exp $
# some of the rules involve .h sources, so remove them from mkdep line
@@ -36,7 +36,7 @@ afterdepend:
.if !target(tags)
.if defined(SRCS)
tags: ${SRCS} _SUBDIRUSE
- -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \
+ -cd ${.CURDIR}; ${CTAGS} -f /dev/stdout ${.ALLSRC:N*.h} | \
sed "s;\${.CURDIR}/;;" > tags
.else
tags:
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index f4cec0e3e33..4ba33f1baad 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: sys.mk,v 1.15 1998/05/14 16:31:39 millert Exp $
+# $OpenBSD: sys.mk,v 1.16 1998/06/09 19:29:46 downsj Exp $
# $NetBSD: sys.mk,v 1.27 1996/04/10 05:47:19 mycroft Exp $
# @(#)sys.mk 5.11 (Berkeley) 3/13/91
@@ -80,6 +80,8 @@ YACC.y?= ${YACC} ${YFLAGS}
INSTALL?= install
+CTAGS?= /usr/bin/ctags
+
# C
.c:
${LINK.c} -o ${.TARGET} ${.IMPSRC} ${LDLIBS}