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)
5 depend: 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)
21 tags: ${SRCS}
22 -cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \
23 sed "s;\${.CURDIR}/;;" > tags
24 .endif
25
26 clean: cleandepend
27 cleandepend:
28 rm -f .depend ${.CURDIR}/tags
29