Quoting from the the autoconf docs at
http://www.gnu.org/s/hello/manual/autoconf/Limitations-of-Usual-Tools.html#Limitations-of-Usual-Tools

rm
         The -f and -r options are portable.


-Paul

On 12/20/2011 5:40 PM, Rayson Ho wrote:
On Tue, Dec 20, 2011 at 8:28 PM, Larry Baker<ba...@usgs.gov>  wrote:
I am pretty sure a literal "rm -rf" should be fine.
Not necessarily.  I'm not at work.  But I think either -f or -r might not be 
legal on all Unix's (Tru64 Unix?  AIX?).
I used to code on AIX daily, and I am pretty sure that "rm -rf" works on AIX:

http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=%2Fcom.ibm.aix.cmds%2Fdoc%2Faixcmds4%2Frm.htm

I have not worked on Tru64 for many years, but according to the
manpage, -r&  -f are supported:

http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51_HTML/MAN/MAN1/0320____.HTM

Rayson

=================================
Open Grid Scheduler / Grid Engine
http://gridscheduler.sourceforge.net/

Scalable Grid Engine Support Program
http://www.scalablelogic.com/



Larry Baker
US Geological Survey
650-329-5608
ba...@usgs.gov




On Dec 20, 2011, at 5:19 PM, Paul H. Hargrove wrote:

For the first time I tried "make clean" on FreeBSD and found /another/ 
GNU-vs-Berkeley Make problem.

The problem is use of $(RM) in several Makefile.am's (see below for list).
The onlt non-VT instance (ompi_info/Makefile.am) occurs in openmpi-1.4.5rc1 as 
well.

$(RM) is a predefined variable in GNU Make, not provided by Berkeley Make (or 
by Automake for that matter).
I am pretty sure a literal "rm -rf" should be fine.

-Paul

$ find openmpi-1.5.5rc1 -name Makefile.am | xargs grep -w RM
openmpi-1.5.5rc1/ompi/tools/ompi_info/Makefile.am:      test -z 
"$(OMPI_CXX_TEMPLATE_REPOSITORY)" || $(RM) -rf $(OMPI_CXX_TEMPLATE_REPOSITORY)
openmpi-1.5.5rc1/ompi/contrib/vt/vt/extlib/otf/tests/hello/Makefile.am: $(RM) 
*.otf *.def *.events *.marker *.otf.z *.def.z *.events.z *.marker.z
openmpi-1.5.5rc1/ompi/contrib/vt/vt/extlib/otf/tests/generic_streams-mpi/Makefile.am:
   $(RM) *.otf *.def *.events *.marker *.otf.z *.def.z *.events.z *.marker.z
openmpi-1.5.5rc1/ompi/contrib/vt/vt/extlib/otf/tests/generic_streams/Makefile.am:
       $(RM) *.otf *.def *.events *.marker *.otf.z *.def.z *.events.z *.marker.z
openmpi-1.5.5rc1/ompi/contrib/vt/vt/extlib/otf/tests/progress/Makefile.am:      
$(RM) *.otf *.def *.events *.marker *.otf.z *.def.z *.events.z *.marker.z
--
Paul H. Hargrove                          phhargr...@lbl.gov
Future Technologies Group
HPC Research Department                   Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

_______________________________________________
devel mailing list
de...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel

_______________________________________________
devel mailing list
de...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/devel



--
Paul H. Hargrove                          phhargr...@lbl.gov
Future Technologies Group
HPC Research Department                   Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to