Skip to content
Back to formatted view

Raw Message

Message-ID: <15296.28192.110207.516151@mithrandir.hornik.net>
Date: 2001-10-07T15:00:48Z
From: Kurt Hornik
Subject: src/modules/Makefile.in: What is the (practical) difference betw.  SUBDIRS and MODULES?
In-Reply-To: <Pine.GSO.4.31.0110061228550.17118-100000@auk.stats>

>>>>> Prof Brian D Ripley writes:

> On Sat, 6 Oct 2001, Thomas Hoffmann wrote:
>> As the subject says, one has
>> 
>> SUBDIRS = X11 gnome internet lapack vfonts
>> 
>> MODULES = $(R_GUIS) internet lapack vfonts
>> 
>> It is my understanding, that there is a 1:1 correspondence between
>> subdirs and modules. If this were true, then one could use one of
>> both in all places. Or do I overlook something here?

> Not all R_GUIS might be supported: gnome often is not. So there is
> on my Solaris system a gnome subdir but no gnome module.
> Your assumption of a 1:1 correspondence is incorrect for my system, which
> has

> R_GUIS = X11

> in $(top_builddir)/Makeconf.


> MODULES is used for shared libraries to be made (to be dynamically
> loaded).  SUBDIRS is used for things to be cleaned and to be
> distributed.

> One could argue that MODULES should be used for things to be cleaned,
> *BUT* that might have be changed by a re-configure, so SUBDIRS looks
> safer.

> [I'm not the author of any of this, and the choices made look right to
> me.]

Thanks :-)

In general we always use SUBDIRS for cleaning up.  We must do that
because e.g. configure could have created a Makefile in a subdir which
make distclean must remove.

[One could argue that targets that build should always use SUBDIRS too
but that can make things rather tricky.]

-k
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._