Re: asdf dependency question
[email protected] (Simon Andr?s)
| Newsgroups | gmane.lisp.cclan.general |
|---|---|
| Message-ID | <[email protected]> |
Daniel Barlow <[email protected]> writes: > [email protected] (Simon Andr=E1s) writes: > > > Unlike mk-defsystem, asdf doesn't recompile a file when files it > > depends on have changed. Is there a way to achieve this?=20 > > Either I don't understand you, or else this is a bug. Dependency It may also be a bug in my understanding of how asdf should be used. > tracking is more or less the raison d'etre of a defsystem utility, > after all. I agree. Wholeheartedly. :-) > > Can you produce a test case? Create file1.lisp and file2.lisp, and then (asdf:defsystem test :components ((:file "file1") (:file "file2" :depends-on ("file1")))) (asdf:oos 'asdf:load-op 'test1) ;; file1.lisp and file2.lisp are now compiled and loaded. Everything's ;; fine so far. (let* ((name1 (compile-file-pathname "file1")) (date1 (file-write-date name1)) (name2 (compile-file-pathname "file2")) (date2 (file-write-date name2))) (sleep 2) (asdf::run-shell-command "touch file1.lisp") (asdf:oos 'asdf:load-op 'test1) (values (< date1 (file-write-date name1)) (< date2 (file-write-date name2)))) --> T,NIL instead of T,T. That is, file1.lisp is recompiled but file2.lisp is not. Andras > > > -dan > > --=20 > > http://ww.telent.net/cliki/ - Link farm for free CL-on-Unix resources=20 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf