2 Quick start summary
- To load an ASDF system:
- Load ASDF itself into your Lisp image, either through
(require "asdf")
(if it’s supplied by your lisp implementation)
or else through
(load "/path/to/asdf.lisp")
. For more details, Loading ASDF.
- Make sure ASDF can find system definitions
through proper source-registry configuration.
For more details, See Configuring ASDF to find your systems.
The simplest way is simply to put all your lisp code in subdirectories of
~/common-lisp/ (starting with ASDF 3.1.2),
or ~/.local/share/common-lisp/source/
(for ASDF 2 and later, or if you want to keep source in a hidden directory).
Such code will automatically be found.
- Load a system with
(asdf:load-system :system)
. See Using ASDF.
- To make your own ASDF system:
- As above, load and configure ASDF.
- Make a new directory for your system,
my-system/
in a location
where ASDF can find it (see Configuring ASDF to find your systems).
All else being equal, the easiest location is probably
~/common-lisp/my-system/.
- Create an ASDF system definition listing the dependencies of
your system, its components, and their interdependencies,
and put it in my-system.asd.
This file must have the same name as your system.
See Defining systems with defsystem.
- Use
(asdf:load-system :my-system)
to make sure it’s all working properly. See Using ASDF.