put info into info rule in example

master
Daniel Kolesa 2015-10-25 18:30:01 +00:00
parent 554441518d
commit 213bf70155
1 changed files with 11 additions and 10 deletions

View File

@ -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