[BACK]Return to bsd.dep.mk CVS log [TXT][DIR] Up to [local] / src / share / mk

Annotation of src/share/mk/bsd.dep.mk, Revision 1.1.1.1

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