<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 2, 2015 at 12:17 PM, Tuan Nguyen <span dir="ltr"><<a href="mailto:tuan.vawr@gmail.com" target="_blank">tuan.vawr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Dear all,<br><br></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">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:<br><br clear="all"></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148);display:inline"><i>​</i><i>​</i></div><i>petsc-3.1-p8-openmpi/conf/rules:120: *** target file `clean' has both : and :: entries.  Stop.</i><br><br><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">​In my "makefile" I added double-colon to target clean but it will bring me to another error message:<br><i>​</i></div><i>/home/petsc-3.1-p8-openmpi/conf/rules:299: warning: overriding commands for target `.c.o'<br>makefile:39: warning: ignoring old commands for target `.c.o'<br>/home/petsc-3.1-p8-openmpi/linux-gnu-c-debug/conf/petscrules:31: warning: overriding commands for target `.F.o'<br>makefile:42: warning: ignoring old commands for target `.F.o'<br>/home/petsc-3.1-p8-openmpi/linux-gnu-c-debug/conf/petscrules:31: warning: overriding commands for target `.F90.o'<br>makefile:47: warning: ignoring old commands for target `.F90.o'</i><br>/bin/rm -f *.o *.mod *.f90<br><br><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">​Could any one help me?<br></div></div></blockquote><div><br></div><div>In your makefile, you have rules for .c.o, etc. You either use the PETSc makefiles, which define these rules, or</div><div>use your own rules, in which case just use the conf/variables file which defines our make vars.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)"></div><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Thanks,​<span class="HOEnZb"><font color="#888888"><br><br></font></span></div><span class="HOEnZb"><font color="#888888"><div style="font-family:verdana,sans-serif;font-size:small;color:rgb(11,83,148)">Tuan<br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div>
</div></div>