bsd.dep.mk revision 1.2
1# $Id: bsd.dep.mk,v 1.2 1993/08/15 20:42:39 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.endif 19 20.if !target(tags) 21tags: ${SRCS} 22 -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \ 23 sed "s;\${.CURDIR}/;;" > tags 24.endif 25 26clean: cleandepend 27cleandepend: 28 rm -f .depend ${.CURDIR}/tags 29