From abb@acm.org  Thu Apr  1 03:13:58 1999
From: abb@acm.org (abb@acm.org)
Date: Thu, 1 Apr 1999 04:13:58 +0200
Subject: Makefile fix on Solaris 2.7 (PR#155)
Message-ID: <199904010213.EAA30627@blueberry.kubism.ku.dk>

Full_Name: Andrew Barclay
Version: 0.63.4
OS: Solaris 2.7
Submission from: (NULL) (170.140.252.158)


The Makefile in src/library gets the following error from our Solaris 2.7 make
when making 'docs':
  make: Fatal error: Don't know how to make target `*/man/*.Rd'
  Current working directory R-release/src/library

It doesn't seem to appreciate shell wildcards in the dependencies.
It's been a while since I've done Makefiles, but here are my diffs 
that got it working.  Thanks for such fantastic software!

*** Makefile.original   Wed Mar 31 20:45:50 1999
--- Makefile    Wed Mar 31 20:49:56 1999
***************
*** 15,20 ****
--- 15,21 ----
  PKGS = base eda lqs modreg mva stepfun

  SUBDIRS = profile $(PKGS)
+ RDFILES = $(@echo $(srcdir)/*/man/*.Rd)

  all: Makefile R

***************
*** 37,43 ****
  latex: stamp-latex
  examples: stamp-examples

! stamp-docs: $(srcdir)/*/man/*.Rd $(top_builddir)/library/LibIndex
        @rm -f $@ stamp-help stamp-html stamp-latex stamp-examples
        @echo "Building ALL documentation (help, HTML, LaTeX, R-Examples)"
        @$(MAKE) DOCS
--- 38,44 ----
  latex: stamp-latex
  examples: stamp-examples

! stamp-docs: $(RDFILES) $(top_builddir)/library/LibIndex
        @rm -f $@ stamp-help stamp-html stamp-latex stamp-examples
        @echo "Building ALL documentation (help, HTML, LaTeX, R-Examples)"
        @$(MAKE) DOCS
***************
*** 44,64 ****
        @RHOME=`cd $(top_builddir); pwd`; export RHOME; \
        $${RHOME}/bin/build-help --htmllists
        @touch $@ stamp-help stamp-html stamp-latex stamp-examples
! stamp-help: $(srcdir)/*/man/*.Rd $(top_builddir)/library/LibIndex
        @rm -f $@
        @OPTS="--nroff" $(MAKE) DOCS
        @touch $@
! stamp-html: $(srcdir)/*/man/*.Rd
        @rm -f $@
        @OPTS="--html"  $(MAKE) DOCS
        @RHOME=`cd $(top_builddir); pwd`; export RHOME; \
        $${RHOME}/bin/build-help --htmllists
        @touch $@
! stamp-latex: $(srcdir)/*/man/*.Rd
        @rm -f $@
        @OPTS="--latex" $(MAKE) DOCS
        @touch $@
! stamp-examples: $(srcdir)/*/man/*.Rd
        @rm -f $@
        @OPTS="--example" $(MAKE) DOCS
        @touch $@
--- 45,65 ----
        @RHOME=`cd $(top_builddir); pwd`; export RHOME; \
        $${RHOME}/bin/build-help --htmllists
        @touch $@ stamp-help stamp-html stamp-latex stamp-examples
! stamp-help: $(RDFILES) $(top_builddir)/library/LibIndex
        @rm -f $@
        @OPTS="--nroff" $(MAKE) DOCS
        @touch $@
! stamp-html: $(RDFILES)
        @rm -f $@
        @OPTS="--html"  $(MAKE) DOCS
        @RHOME=`cd $(top_builddir); pwd`; export RHOME; \
        $${RHOME}/bin/build-help --htmllists
        @touch $@
! stamp-latex: $(RDFILES)
        @rm -f $@
        @OPTS="--latex" $(MAKE) DOCS
        @touch $@
! stamp-examples: $(RDFILES)
        @rm -f $@
        @OPTS="--example" $(MAKE) DOCS
        @touch $@


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Makefile fix on Solaris 2.7 (PR#155)
abb@acm.org