MK:DEFSYSTEM extension.

Marco Antoniotti <[email protected]> Wed, 16 Jun 2004 10:03:52 -0400
Newsgroups gmane.lisp.clocc.general,gmane.lisp.clocc.devel
Message-ID <[email protected]>
Hi

I completed support for "recursive defsystems":
A DEFSYSTEM definition can now have components of the form

     	(:system "foo")

or

         (:system "foo" :depends-on (...))

As long as the :system (or :subsystem) component spec does not contain 
any :components, then MK:DEFSYSTEM will take this to be a "recursive 
defsystem" definition and try to load a system named "foo.system" from 
the "foo" subdirectory.  It can be argued that this makes life more 
easier and more natural.

As an example this is a snippet of the definition of my "mathematics" 
package.

	(mk:defsystem "mathematics"
	   :components ("mathematics-pkg"
	                             (:file "common-math")
                                       (:system "polynomials")) ; Note: 
no :conponents
                    )

The directory structure is

	.../mathemathics
		polynomials

and the "polynomials" subdirectory contains the "polynomials.system" 
package.  This sort of definitions could not be specified before (note 
the implicit dependency of the system "polynomials" from the 
"common-math" file.)

Hope this will help people.  The extension is in CVS.

Cheers

Marco


--
Marco Antoniotti					http://bioinformatics.nyu.edu
NYU Courant Bioinformatics Group		tel. +1 - 212 - 998 3488
715 Broadway 10th FL				fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.



-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND