diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2017-07-04 00:59:12 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2017-07-04 00:59:12 +0000 |
commit | 474036519bbfd3419cd4c402ba4ca79e864da8ac (patch) | |
tree | b6f4661eb0972c2d9e650ac206c2e7d090abd25a /share/mk/bsd.prog.mk | |
parent | 6e86c8b1500429e5ec35c4bab73b4626d23d52b2 (diff) |
let BUILDFIRST just build first, using the same trick guenther@ did in
kernel Makefiles (thank you!), also add lex and yacc generated files to
that list.
Let those lex/yacc variables be defined for bsd.lib.mk as well.
Complete the SRCS -> OBJS hints with the library dependency
This should fix most dependency problems.
Commit now, so that people can check if something else is still amiss.
krw@ agrees
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r-- | share/mk/bsd.prog.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index c86512e4409..bf852c2c62f 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -1,4 +1,4 @@ -# $OpenBSD: bsd.prog.mk,v 1.72 2017/07/01 14:41:54 espie Exp $ +# $OpenBSD: bsd.prog.mk,v 1.73 2017/07/04 00:59:11 espie Exp $ # $NetBSD: bsd.prog.mk,v 1.55 1996/04/08 21:19:26 jtc Exp $ # @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 @@ -74,8 +74,8 @@ SRCS?= ${PROG}.c OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/} DEPS+= ${OBJS:R:S/$/.d/} -_LEXINTM+=${SRCS:M*.l:.l=.c} -_YACCINTM+=${SRCS:M*.y:.y=.c} +_LEXINTM?=${SRCS:M*.l:.l=.c} +_YACCINTM?=${SRCS:M*.y:.y=.c} . endif . if defined(OBJS) && !empty(OBJS) |