diff --git a/example/obuild.cfg b/example/obuild.cfg index 53cbd42..49e9ede 100644 --- a/example/obuild.cfg +++ b/example/obuild.cfg @@ -1,4 +1,7 @@ CC = (getenv CC) +if (=s $CC "") [ + CC = "cc" +] rule all test @@ -20,12 +23,7 @@ action clean [ ] action info [ - if (=s $CC "") [ - echo "no compiler found, using cc" - CC = "cc" - ] [ - echo "using compiler:" $CC - ] + echo "compiler:" $CC echo "number of CPUs:" $numcpus echo "number of jobs:" $numjobs ]