aboutsummaryrefslogtreecommitdiffstats
path: root/mk/progs.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2013-05-20 22:35:32 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2013-05-20 22:35:32 +0000
commitdca4585d16e9cd593a0b85c0d317ceab4bb4b3c0 (patch)
treed16f704b3e67f72192c172537346adf9d11f957d /mk/progs.mk
parent3784f43e18c800101799ccd6fdcf75aa856c66fa (diff)
downloadsrc-dca4585d16e9cd593a0b85c0d317ceab4bb4b3c0.tar.gz
src-dca4585d16e9cd593a0b85c0d317ceab4bb4b3c0.zip
Import bmake-20130520 to keep us in sync.vendor/NetBSD/bmake/20130520
Notes
Notes: svn path=/vendor/NetBSD/bmake/dist/; revision=250835 svn path=/vendor/NetBSD/bmake/20130520/; revision=250836; tag=vendor/NetBSD/bmake/20130520
Diffstat (limited to 'mk/progs.mk')
-rw-r--r--mk/progs.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/progs.mk b/mk/progs.mk
index 0fd23120b620..f74f64012849 100644
--- a/mk/progs.mk
+++ b/mk/progs.mk
@@ -1,4 +1,4 @@
-# $Id: progs.mk,v 1.11 2012/11/06 17:18:54 sjg Exp $
+# $Id: progs.mk,v 1.12 2013/04/22 18:10:04 sjg Exp $
#
# @(#) Copyright (c) 2006, Simon J. Gerraty
#
@@ -35,9 +35,11 @@ PROG ?= $t
.if defined(PROG)
# just one of many
-PROG_VARS += CFLAGS CPPFLAGS CXXFLAGS DPADD DPLIBS LDADD MAN SRCS
+PROG_VARS += BINDIR CFLAGS CPPFLAGS CXXFLAGS DPADD DPLIBS LDADD MAN SRCS
.for v in ${PROG_VARS:O:u}
+.if defined(${v}.${PROG})
$v += ${${v}_${PROG}:U${${v}.${PROG}}}
+.endif
.endfor
# for meta mode, there can be only one!
@@ -63,7 +65,8 @@ UPDATE_DEPENDFILE = NO
.include <${.PARSEFILE:S,progs,prog,}>
.ifndef PROG
-PROGS_TARGETS += clean
+# tell progs.mk we might want to install things
+PROGS_TARGETS+= cleandepend cleandir cleanobj depend install
.for p in ${PROGS}
.if defined(PROGS_CXX) && !empty(PROGS_CXX:M$p)