bsd.dep.mk revision 1.3
1# $Id: bsd.dep.mk,v 1.3 1993/08/15 21:09:21 mycroft Exp $ 2 3# some of the rules involve .h sources, so remove them from mkdep line 4.if !target(depend) 5depend: beforedepend .depend afterdepend 6.if defined(SRCS) 7.depend: ${SRCS} 8 rm -f .depend 9 files="${.ALLSRC:M*.c}"; \ 10 if [ "$$files" != "" ]; then \ 11 mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} $$files; \ 12 fi 13 files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \ 14 if [ "$$files" != " " ]; then \ 15 mkdep -a ${MKDEP} -+ ${CXXFLAGS:M-[ID]*} $$files; \ 16 fi 17.endif 18.if !target(beforedepend) 19beforedepend: 20.endif 21.if !target(afterdepend) 22afterdepend: 23.endif 24.endif 25 26.if !target(tags) 27tags: ${SRCS} 28 -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \ 29 sed "s;\${.CURDIR}/;;" > tags 30.endif 31 32clean: cleandepend 33cleandepend: 34 rm -f .depend ${.CURDIR}/tags 35