tExplain bug about meta-rules and CLI arguments - mkports - recipes for building multiple softwares with mk(1)
(HTM) git clone git://z3bra.org/mkports
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 0de3f25560b80c304d9c531330323d2a0e286ccc
(DIR) parent f79c25c292649d82e1be30e1ea6eb246ffcbc5bb
(HTM) Author: z3bra <willyatmailoodotorg>
Date: Wed, 20 Jan 2016 17:14:32 +0100
Explain bug about meta-rules and CLI arguments
Diffstat:
M mkfile | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/mkfile b/mkfile
t@@ -9,6 +9,10 @@ default:QV:
all:QV: ${ALL}
+# due to a bug in mk(1), you need to use the -s flag when
+# trying to build multiple targets from the cli, otherwise
+# the recipe will be executed one more time for the fake
+# target "command line arguments"
%:V:
cd $stem
env -i PATH=$PATH mk