aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMaxime Devos <maximedevos@telenet.be>2021-09-11 12:49:42 +0200
committerMaxime Devos <maximedevos@telenet.be>2021-09-21 12:21:04 +0200
commit3d0950a19958b6e4526680f5452f8008a46a218f (patch)
treec84863085ee0f81db52264dadf609e4bc0838523 /gnu
parentf4e2c452f0953d12c50fac04e91228d9e8454736 (diff)
downloadgnunet-scheme-3d0950a19958b6e4526680f5452f8008a46a218f.tar.gz
gnunet-scheme-3d0950a19958b6e4526680f5452f8008a46a218f.zip
build: Find .scmfrag files when building out-of-tree.
* Makefile.am (E): New variable. (nobase_dist_guilesite_DATA): Add .scmfrag files and protocols .scmgen. * gnu/gnunet/message/protocols.scm (the-library-form): Search for files in %load-path.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/gnunet/message/protocols.scm10
1 files changed, 7 insertions, 3 deletions
diff --git a/gnu/gnunet/message/protocols.scm b/gnu/gnunet/message/protocols.scm
index efbfb2d..c0c7e2f 100644
--- a/gnu/gnunet/message/protocols.scm
+++ b/gnu/gnunet/message/protocols.scm
@@ -20,14 +20,18 @@
20 (lambda (s) 20 (lambda (s)
21 (let () 21 (let ()
22 (define (include/sexp name) 22 (define (include/sexp name)
23 (call-with-input-file 23 (define file
24 (string-append (dirname (current-filename)) "/" name) 24 (search-path %load-path
25 (string-append "gnu/gnunet/message/" name)))
26 (call-with-input-file file
25 (lambda (port) 27 (lambda (port)
26 (let loop () 28 (let loop ()
27 (let ((obj (read port))) 29 (let ((obj (read port)))
28 (if (eof-object? obj) 30 (if (eof-object? obj)
29 '() 31 '()
30 (cons obj (loop)))))))) 32 (cons obj (loop))))))))
31 (include "protocols.scmgen") 33 ;; Do this instead of (include "protocols.scmgen") to placate
34 ;; "make distcheck".
35 (include-from-path "gnu/gnunet/message/protocols.scmgen")
32 (datum->syntax s result))))) 36 (datum->syntax s result)))))
33 the-library-form) 37 the-library-form)