bsd.dep.mk revision 1.4
1# $Id: bsd.dep.mk,v 1.4 1993/08/15 21:14:45 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.else 18.depend: 19.endif 20.if !target(beforedepend) 21beforedepend: 22.endif 23.if !target(afterdepend) 24afterdepend: 25.endif 26.endif 27 28.if !target(tags) 29.if defined(SRCS) 30tags: ${SRCS} 31 -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \ 32 sed "s;\${.CURDIR}/;;" > tags 33.else 34tags: 35.endif 36.endif 37 38.if defined(SRCS) 39clean: cleandepend 40cleandepend: 41 rm -f .depend ${.CURDIR}/tags 42.endif 43