diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2003-08-07 11:24:04 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2003-08-07 11:24:04 +0000 |
commit | bff21cf9a4c16ff7dce36a184e86d0342dfb7b1b (patch) | |
tree | 57c0d6efba879572edb6194452816703cb457705 | |
parent | dd7b2f5b1196a2d828b48ea083669d7342de7ced (diff) |
trivial clean-up: indent tests and mark phony targets.
-rw-r--r-- | share/mk/bsd.dep.mk | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index 7ad84b4462a..5dcaceeedab 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -1,10 +1,10 @@ -# $OpenBSD: bsd.dep.mk,v 1.4 1998/06/09 19:29:45 downsj Exp $ +# $OpenBSD: bsd.dep.mk,v 1.5 2003/08/07 11:24:03 espie 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 .if !target(depend) depend: beforedepend .depend _SUBDIRUSE afterdepend -.if defined(SRCS) +. if defined(SRCS) .depend: ${SRCS} @rm -f .depend @files="${.ALLSRC:M*.s} ${.ALLSRC:M*.S}"; \ @@ -22,25 +22,25 @@ depend: beforedepend .depend _SUBDIRUSE afterdepend echo mkdep -a ${MKDEP} ${CXXFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \ mkdep -a ${MKDEP} ${CXXFLAGS:M-[ID]*} ${CPPFLAGS} $$files; \ fi -.else +. else .depend: -.endif -.if !target(beforedepend) +. endif +. if !target(beforedepend) beforedepend: -.endif -.if !target(afterdepend) +. endif +. if !target(afterdepend) afterdepend: -.endif +. endif .endif .if !target(tags) -.if defined(SRCS) +. if defined(SRCS) tags: ${SRCS} _SUBDIRUSE -cd ${.CURDIR}; ${CTAGS} -f /dev/stdout ${.ALLSRC:N*.h} | \ sed "s;\${.CURDIR}/;;" > tags -.else +. else tags: -.endif +. endif .endif .if defined(SRCS) @@ -48,3 +48,5 @@ cleandir: cleandepend cleandepend: rm -f .depend ${.CURDIR}/tags .endif + +.PHONY: beforedepend depend afterdepend cleandepend |