1 # $Id: bsd.dep.mk,v 1.4 1994/02/27 19:28:44 nate Exp $
3 # some of the rules involve .h sources, so remove them from mkdep line
5 depend: beforedepend .depend afterdepend
9 files="${.ALLSRC:M*.[sS]}"; \
10 if [ "$$files" != "" ]; then \
11 mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} ${AINC} $$files; \
13 files="${.ALLSRC:M*.c}"; \
14 if [ "$$files" != "" ]; then \
15 mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} $$files; \
17 files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \
18 if [ "$$files" != " " ]; then \
19 mkdep -a ${MKDEP} ${CXXFLAGS:M-nostd*} ${CXXFLAGS:M-[ID]*} $$files; \
24 .if !target(beforedepend)
27 .if !target(afterdepend)
35 -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \
36 sed "s;\${.CURDIR}/;;" > tags
46 rm -f .depend ${.CURDIR}/tags