Home | History | Annotate | Line # | Download | only in mk
bsd.dep.mk revision 1.8
      1  1.8      cgd #	$Id: bsd.dep.mk,v 1.8 1994/06/30 05:21:28 cgd Exp $
      2  1.1  mycroft 
      3  1.1  mycroft # some of the rules involve .h sources, so remove them from mkdep line
      4  1.1  mycroft .if !target(depend)
      5  1.8      cgd depend: beforedepend .depend _SUBDIRUSE afterdepend
      6  1.1  mycroft .if defined(SRCS)
      7  1.1  mycroft .depend: ${SRCS}
      8  1.1  mycroft 	rm -f .depend
      9  1.6      cgd 	files="${.ALLSRC:M*.s} ${.ALLSRC:M*.S}"; \
     10  1.6      cgd 	if [ "$$files" != " " ]; then \
     11  1.5  mycroft 	  mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} ${AINC} $$files; \
     12  1.5  mycroft 	fi
     13  1.1  mycroft 	files="${.ALLSRC:M*.c}"; \
     14  1.1  mycroft 	if [ "$$files" != "" ]; then \
     15  1.1  mycroft 	  mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} $$files; \
     16  1.1  mycroft 	fi
     17  1.1  mycroft 	files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \
     18  1.1  mycroft 	if [ "$$files" != "  " ]; then \
     19  1.1  mycroft 	  mkdep -a ${MKDEP} -+ ${CXXFLAGS:M-[ID]*} $$files; \
     20  1.1  mycroft 	fi
     21  1.4  mycroft .else
     22  1.4  mycroft .depend:
     23  1.3  mycroft .endif
     24  1.3  mycroft .if !target(beforedepend)
     25  1.3  mycroft beforedepend:
     26  1.3  mycroft .endif
     27  1.3  mycroft .if !target(afterdepend)
     28  1.3  mycroft afterdepend:
     29  1.1  mycroft .endif
     30  1.1  mycroft .endif
     31  1.2  mycroft 
     32  1.2  mycroft .if !target(tags)
     33  1.4  mycroft .if defined(SRCS)
     34  1.8      cgd tags: ${SRCS} _SUBDIRUSE
     35  1.2  mycroft 	-cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \
     36  1.2  mycroft 	    sed "s;\${.CURDIR}/;;" > tags
     37  1.4  mycroft .else
     38  1.4  mycroft tags:
     39  1.4  mycroft .endif
     40  1.2  mycroft .endif
     41  1.2  mycroft 
     42  1.4  mycroft .if defined(SRCS)
     43  1.7      cgd cleandir: cleandepend
     44  1.2  mycroft cleandepend:
     45  1.2  mycroft 	rm -f .depend ${.CURDIR}/tags
     46  1.4  mycroft .endif
     47