bsd.dep.mk revision 6252
1185089Sraj# $Id: bsd.dep.mk,v 1.1 1994/08/04 21:10:07 wollman Exp $ 2209131Sraj 3209131Sraj# some of the rules involve .h sources, so remove them from mkdep line 4294430Szbb.if !target(depend) 5185089Srajdepend: beforedepend .depend afterdepend ${_DEPSUBDIR} 6185089Sraj.if defined(SRCS) 7185089Sraj.depend: ${SRCS} 8185089Sraj rm -f .depend 9209131Sraj files="${.ALLSRC:M*.[sS]}"; \ 10209131Sraj if [ "$$files" != "" ]; then \ 11209131Sraj mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} ${AINC} $$files; \ 12185089Sraj fi 13185089Sraj files="${.ALLSRC:M*.c}"; \ 14185089Sraj if [ "$$files" != "" ]; then \ 15185089Sraj mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} $$files; \ 16185089Sraj fi 17185089Sraj files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \ 18185089Sraj if [ "$$files" != " " ]; then \ 19185089Sraj mkdep -a ${MKDEP} ${CXXFLAGS:M-nostd*} ${CXXFLAGS:M-[ID]*} $$files; \ 20185089Sraj fi 21185089Sraj.else 22185089Sraj.depend: ${_DEPSUBDIR} 23185089Sraj.endif 24185089Sraj.if !target(beforedepend) 25185089Srajbeforedepend: 26185089Sraj.endif 27185089Sraj.if !target(afterdepend) 28185089Srajafterdepend: 29185089Sraj.endif 30185089Sraj.endif 31185089Sraj 32185089Sraj.if !target(tags) 33185089Sraj.if defined(SRCS) 34185089Srajtags: ${SRCS} 35185089Sraj -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \ 36185089Sraj sed "s;\${.CURDIR}/;;" > tags 37185089Sraj.else 38185089Srajtags: 39185089Sraj.endif 40185089Sraj.endif 41185089Sraj 42185089Sraj.if defined(SRCS) 43185089Srajclean: 44185089Srajcleandir: cleandepend 45185089Srajcleandepend: 46185089Sraj rm -f .depend ${.CURDIR}/tags 47185089Sraj.endif 48185089Sraj