781e25808c
bsd.dep.mk: Add defaults for `beforedepend' and `afterdepend'. sys.mk: 8 tabs --> space
35 lines
814 B
Makefile
35 lines
814 B
Makefile
# $Id: bsd.dep.mk,v 1.3 1993/08/15 21:09:21 mycroft Exp $
|
|
|
|
# some of the rules involve .h sources, so remove them from mkdep line
|
|
.if !target(depend)
|
|
depend: beforedepend .depend afterdepend
|
|
.if defined(SRCS)
|
|
.depend: ${SRCS}
|
|
rm -f .depend
|
|
files="${.ALLSRC:M*.c}"; \
|
|
if [ "$$files" != "" ]; then \
|
|
mkdep -a ${MKDEP} ${CFLAGS:M-[ID]*} $$files; \
|
|
fi
|
|
files="${.ALLSRC:M*.cc} ${.ALLSRC:M*.C} ${.ALLSRC:M*.cxx}"; \
|
|
if [ "$$files" != " " ]; then \
|
|
mkdep -a ${MKDEP} -+ ${CXXFLAGS:M-[ID]*} $$files; \
|
|
fi
|
|
.endif
|
|
.if !target(beforedepend)
|
|
beforedepend:
|
|
.endif
|
|
.if !target(afterdepend)
|
|
afterdepend:
|
|
.endif
|
|
.endif
|
|
|
|
.if !target(tags)
|
|
tags: ${SRCS}
|
|
-cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \
|
|
sed "s;\${.CURDIR}/;;" > tags
|
|
.endif
|
|
|
|
clean: cleandepend
|
|
cleandepend:
|
|
rm -f .depend ${.CURDIR}/tags
|