Module-Level Dependencies in ASDF

James Bielman <[email protected]>
Newsgroups gmane.lisp.cclan.general
Message-ID <[email protected]>
Hi,

I'm trying to split up the system definition for a fairly large project
using ASDF that makes rather heavy use of macros.  What I would like to
be able to do is something like:

(defsystem :some-system
  :components
  (
   ;; This module defines functions and macros used by modules
   ;; that depend on it.  When this module is recompiled, its
   ;; dependents will also need to be recompiled.
   (:module "base" :components ((:file "package")
                                (:file "macros")))

   ;; This module makes use of macros defined in BASE.
   (:module "main" :components ((:file "main"))
    :depends-on ("base"))))

but this does not cause 'base.lisp' to be recompiled when 'macros.lisp'
is recompiled.

I messed around a bit with adding :IN-ORDER-TO to the module definitions
but haven't found anything yet that works.

Also, I think this same issue applies to dependences between systems as
well as modules; I know I started defining things in separate .asd files
until I found they weren't recompiling and switched to using :MODULE.


James


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.