forked from OctaForge/OctaBuild
put info into info rule in example
parent
554441518d
commit
213bf70155
|
@ -1,15 +1,5 @@
|
||||||
CC = (getenv CC)
|
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
|
rule all test
|
||||||
|
|
||||||
OBJ = (strreplace (glob "*.c") ".c" ".o")
|
OBJ = (strreplace (glob "*.c") ".c" ".o")
|
||||||
|
@ -29,6 +19,17 @@ rule- clean [
|
||||||
shell rm -f $OBJ test
|
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
|
// dependencies
|
||||||
|
|
||||||
rule foo.o foo.h
|
rule foo.o foo.h
|
||||||
|
|
Loading…
Reference in New Issue