make: Recompile .go too when included mes is touched.
* build-aux/compile-all.scm (scm->mes): New function. (file-needs-compilation?): Use it to hackishly respect (include-[from-path] "<>.mes")
This commit is contained in:
parent
e16a74d74f
commit
0ec15a3220
|
@ -68,10 +68,18 @@
|
|||
(without-extension (string-drop-right relative 4)))
|
||||
(string-append without-extension ".go")))
|
||||
|
||||
(define (scm->mes file)
|
||||
(let* ((relative (relative-file file))
|
||||
(without-extension (string-drop-right relative 4)))
|
||||
(string-append without-extension ".mes")))
|
||||
|
||||
(define (file-needs-compilation? file)
|
||||
(let ((go (scm->go file)))
|
||||
(or (not (file-exists? go))
|
||||
(file-mtime<? go file))))
|
||||
(file-mtime<? go file)
|
||||
(let ((mes (scm->mes file))) ; FIXME: try to respect (include-from-path ".mes")
|
||||
(and (file-exists? mes)
|
||||
(file-mtime<? go mes))))))
|
||||
|
||||
(define (file->module file)
|
||||
(let* ((relative (relative-file file))
|
||||
|
|
Loading…
Reference in a new issue