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