[petsc-dev] making make cmake less verbose
Barry Smith
bsmith at mcs.anl.gov
Thu Dec 13 15:29:42 CST 2012
I don't know the meaning of -C for make and was too lazy to do man make until after receiving you alls mail :-(
I'm pretty sure make didn't support -C in 1986
On Dec 13, 2012, at 3:27 PM, Sean Farley <sean at mcs.anl.gov> wrote:
> On Thu, Dec 13, 2012 at 3:23 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>>
>>
>> On Dec 13, 2012, at 3:18 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>>
>>> It is displaying all the debugging information. You'll only get the useful information if you run this:
>>>
>>> make -j5 -C arch-gnu
>>
>> Yes, your suggestion is not verbose because it doesn't do anything
>>
>> Barrys-MacBook-Pro:tutorials barrysmith$ make -j5 -C arch-gnu
>> make: *** arch-gnu: No such file or directory. Stop.
>> Barrys-MacBook-Pro:tutorials barrysmith$ pwd
>> /Users/barrysmith/Src/petsc-dev/src/snes/examples/tutorials
>>
>> I don't want a "clean" top-level only command, like make cmake I want to run this command from whatever directory I am in and have it work correctly.
>>
>> I guess I'll just add the rule ccmake: pushd ${PETSC_DIR} ; make -j5 -C ${PETSC_ARCH}; popd in the conf/rules makefile, would that be reasonable?
>
> What's wrong with `make -C $PETSC_DIR/$PETSC_ARCH`? You could even set
> this as an alias if you don't like typing that much.
More information about the petsc-dev
mailing list