summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.scm b/Makefile.scm
index 67ca4a0..94834f3 100644
--- a/Makefile.scm
+++ b/Makefile.scm
@@ -28,7 +28,10 @@ exec chibi-scheme -A utils/ $0 $@
(define (directory-sources lang dir)
(map (lambda (x) (make-path dir lang x))
(sort (filter
- (lambda (x) (string=? "md" (or (path-extension x) "")))
+ (lambda (x)
+ (let ((extension (or (path-extension x) "")))
+ (any (lambda (x) (string=? x extension))
+ '("latex" "tex" "md"))))
(directory-files-not-hidden (make-path dir lang))) string<?)))
(define (directory-meta lang dir)