I'm having trouble with make at the documentation. (R 0.63.2 on Solaris) Paul Gilbert ______ g77 -O2 -fPIC -c kmns.f -o kmns.o ld -G -o mva.so dblcen.o hclust.o kmns.o mkdir ../../../../library/mva/libs mkdir ../../../library/stepfun mkdir ../../../library/stepfun/R Building system startup profile You should `make docs' now ... make: Fatal error: Don't know how to make target `*/man/*.Rd' Current working directory /home/res4/gilp/R-versions/R-0.63.2/src/library [17] /home/res/gilp/R-versions/R-0.63.2 : which perl /usr/bin/perl [18] /home/res/gilp/R-versions/R-0.63.2 : perl --version This is perl, version 5.004_04 built for sun4-solaris Copyright 1987-1997, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit. [19] /home/res/gilp/R-versions/R-0.63.2 : uname -a SunOS res98540 5.6 Generic_105181-03 sun4u sparc SUNW,Ultra-5_10[20] [20]/home/res/gilp/R-versions/R-0.63.2 : make doc `doc' is up to date. [21] /home/res/gilp/R-versions/R-0.63.2 : make docs make: Fatal error: Don't know how to make target `*/man/*.Rd' Current working directory /home/res4/gilp/R-versions/R-0.63.2/src/library [22] /home/res/gilp/R-versions/R-0.63.2 : -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 13 Jan 1999, Paul Gilbert wrote:> I'm having trouble with make at the documentation. (R 0.63.2 on Solaris) > > Paul Gilbert > ______ > > g77 -O2 -fPIC -c kmns.f -o kmns.o > ld -G -o mva.so dblcen.o hclust.o kmns.o > mkdir ../../../../library/mva/libs > mkdir ../../../library/stepfun > mkdir ../../../library/stepfun/R > Building system startup profile > You should `make docs' now ... > make: Fatal error: Don't know how to make target `*/man/*.Rd'I had this problem with Solaris make but it went away when I used GNU make. -thomas Thomas Lumley Assistant Professor, Biostatistics University of Washington, Seattle -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> Paul Gilbert writes:> I'm having trouble with make at the documentation. (R 0.63.2 on Solaris) > Paul Gilbert > ______> g77 -O2 -fPIC -c kmns.f -o kmns.o > ld -G -o mva.so dblcen.o hclust.o kmns.o > mkdir ../../../../library/mva/libs > mkdir ../../../library/stepfun > mkdir ../../../library/stepfun/R > Building system startup profile > You should `make docs' now ... > make: Fatal error: Don't know how to make target `*/man/*.Rd' > Current working directory /home/res4/gilp/R-versions/R-0.63.2/src/library > [17] /home/res/gilp/R-versions/R-0.63.2 : which perl > /usr/bin/perl > [18] /home/res/gilp/R-versions/R-0.63.2 : perl --versionsrc/library/Makefile has */man/*.Rd wildcards. You may need GNU make to build the docs. -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
How quickly I forget. Thanks everyone for reminding me about gnu make. I had to switch back because PADI_HOME:sh = if [ $PADI_HOME ] ; then echo $PADI_HOME; else echo $PWD ; fi works to conditionally set a variable in Sun make but not in gnu. Does anyone know how to do an equivalent thing in gnu make? Paul -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
The following should do what you want (assuming I understand the problem) ifndef PADI_HOME PADI_HOME=$(shell pwd) # or PADI_HOME=${PWD} endif GNU make even allows you determine the source of the value of the variable - environment, command line, automatic variable, etc. via the origin function ifeq "$(orgin PADI_HOME)" "environment" # do something. endif I can't remember if Gmake guarantees that the execution of the shell will give a Bourne shell. I presume it will use the current value of SHELL and so the following PADI_HOME=$(shell ${PADI_HOME-$PWD}) may not be as robust as the internal gmake solutions. Duncan> Cc: R-devel <stat.math.ethz.ch!R-devel> > References: <99Jan13.151923est.13454@mailgate.bank-banque-canada.ca> > From: Peter Dalgaard BSA <biostat.ku.dk!p.dalgaard> > Date: 13 Jan 1999 22:44:50 +0100 > Lines: 23 > Sender: stat.math.ethz.ch!owner-r-devel > Precedence: bulk > > Paul Gilbert <pgilbert@bank-banque-canada.ca> writes: > > > How quickly I forget. Thanks everyone for reminding me about gnu make. I had to > > switch back because > > > > PADI_HOME:sh = if [ $PADI_HOME ] ; then echo $PADI_HOME; else echo $PWD ; fi > > > > works to conditionally set a variable in Sun make but not in gnu. Does anyone > > know how to do an equivalent thing in gnu make? > > PADI_HOME=$(shell if [ ....) > > or something like that. > > I suspect, by the way, that the whole thing might be better written as > > PADI_HOME=$(shell ${PADI_HOME-$PWD}) > > -- > O__ ---- Peter Dalgaard Blegdamsvej 3 > c/ /'_ --- Dept. of Biostatistics 2200 Cph. N > (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 > ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html > Send "info", "help", or "[un]subscribe" > (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-- _______________________________________________________________ Duncan Temple Lang duncan@research.bell-labs.com Bell Labs, Lucent Technologies office: (908)582-3217 700 Mountain Avenue, Room 2C-259 fax: (908)582-3340 Murray Hill, NJ 07974-2070 http://cm.bell-labs.com/stat/duncan Languages shape the way we think, and determine what we can think about -- Benjamin Whorf -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._