[petsc-users] Double-colon target

Matthew Knepley knepley at gmail.com
Tue Jun 2 12:30:56 CDT 2015


On Tue, Jun 2, 2015 at 12:17 PM, Tuan Nguyen <tuan.vawr at gmail.com> wrote:

> Dear all,
>
> I installed PETSC 3.1-p8 library. I am trying compile the fortran code
> link to Petsc but there is message saying about target file as follow:
>
> *​**​*
> *petsc-3.1-p8-openmpi/conf/rules:120: *** target file `clean' has both :
> and :: entries.  Stop.*
>
> ​In my "makefile" I added double-colon to target clean but it will bring
> me to another error message:
> *​*
>
>
>
>
>
> */home/petsc-3.1-p8-openmpi/conf/rules:299: warning: overriding commands
> for target `.c.o'makefile:39: warning: ignoring old commands for target
> `.c.o'/home/petsc-3.1-p8-openmpi/linux-gnu-c-debug/conf/petscrules:31:
> warning: overriding commands for target `.F.o'makefile:42: warning:
> ignoring old commands for target
> `.F.o'/home/petsc-3.1-p8-openmpi/linux-gnu-c-debug/conf/petscrules:31:
> warning: overriding commands for target `.F90.o'makefile:47: warning:
> ignoring old commands for target `.F90.o'*
> /bin/rm -f *.o *.mod *.f90
>
> ​Could any one help me?
>

In your makefile, you have rules for .c.o, etc. You either use the PETSc
makefiles, which define these rules, or
use your own rules, in which case just use the conf/variables file which
defines our make vars.

   Matt


> Thanks,​
>
> Tuan
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150602/116369ae/attachment.html>


More information about the petsc-users mailing list