From 213bf70155080d13d1128d10e8f26410bf72c850 Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 25 Oct 2015 18:30:01 +0000 Subject: [PATCH] put info into info rule in example --- example/obuild.cfg | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/example/obuild.cfg b/example/obuild.cfg index 4389e5e..035bfff 100644 --- a/example/obuild.cfg +++ b/example/obuild.cfg @@ -1,15 +1,5 @@ CC = (getenv CC) -if (=s $CC "") [ - echo "no compiler found, using cc" - CC = "cc" -] [ - echo "using compiler:" $CC -] - -echo "number of CPUs:" $numcpus -echo "number of jobs:" $numjobs - rule all test OBJ = (strreplace (glob "*.c") ".c" ".o") @@ -29,6 +19,17 @@ rule- clean [ shell rm -f $OBJ test ] +rule- info [ + if (=s $CC "") [ + echo "no compiler found, using cc" + CC = "cc" + ] [ + echo "using compiler:" $CC + ] + echo "number of CPUs:" $numcpus + echo "number of jobs:" $numjobs +] + // dependencies rule foo.o foo.h