如何将本地项目添加到由quicklisp配置的asdf [英] How to add a local project to asdf configured by quicklisp
问题描述
我想将本地项目添加到asdf的已知项目中,但是由于事实上asdf是由quicklisp和 * central-registry *
安装和配置的指向#P / home / user / quicklisp / quicklisp /,其中包含.lisp文件。我不知道该怎么做,因为手册解释说一个指向目录的符号链接就可以做到,但是我不想在quicklisp里面弄乱。 (不过,它确实可以作为一个修补程序!)
I want to add a local project to the known projects by asdf, but due to the fact that asdf was installed and configured by quicklisp and the *central-registry*
points to "#P/home/user/quicklisp/quicklisp/", which contains .lisp files. I do not know how to do it as the manual explains that a symbolic link into the directory would do it, but I do not want to mess around inside quicklisp. (It does work as a hotfix, though!)
因此:如何将本地项目添加到由quicklisp安装和配置的asdf(NOT QUICKLISP)中?
Therefore:How to add a local project to asdf (NOT QUICKLISP) which was installed and configured by quicklisp?
推荐答案
如果您使用Quicklisp,则可以使用专用目录
〜/ quicklisp / local -projects /
在其他
目录之前进行扫描。要使用它,只需放入您的项目或符号链接。
If you use Quicklisp you can use the dedicated directory
~/quicklisp/local-projects/
which is scanned before the others
directories. To use it, just put your project or a symbolic link.
(quickproject:make-project "~/quicklisp/local-projects/my-new-website/"
:depends-on '(restas parenscrit cl-who))
(quickproject:make-project "~/src/lisp/my-cool-gui/"
:depends-on '(qt))
$ ln -s ~/src/lisp/my-cool-gui ~/quicklisp/local-projects/my-cool-gui
但是,如果您确实要配置 ASDF
按照
文档。
However, if you really want to configure ASDF
do as explained in the
documentation .
例如,您可以输入以下内容:
For example you can put this:
(:directory "~/src/lisp/my-project-XYZ/")
在您的〜/ .config / common-lisp / source-registry.conf.d / my-asdf.conf
到
添加目录,或
in your ~/.config/common-lisp/source-registry.conf.d/my-asdf.conf
to
add a directory, or
(:tree "~/src/lisp/")
如果要扫描所有子目录。
if you want all the subdirectories to be scanned.
这篇关于如何将本地项目添加到由quicklisp配置的asdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!