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