Change behavior. (require racket-makefile) and use (make <target>) instead of racket Makefile.rkt <target>

This commit is contained in:
2026-08-08 22:38:13 +02:00
parent f32503f3e7
commit 57707e5fc0
11 changed files with 276 additions and 32 deletions
+3 -3
View File
@@ -32,18 +32,18 @@
(list (list "result.txt"))
void)
(run-selected-target!)
(make-targets!)
(check-equal? build-count 1)
(check-true (file-exists? "result.txt"))
;; Nothing changed, so the file target remains up to date.
(run-selected-target!)
(make-targets!)
(check-equal? build-count 1)
;; Make the input newer than the output and verify that it rebuilds.
(define result-time (file-or-directory-modify-seconds "result.txt"))
(file-or-directory-modify-seconds "input.txt" (+ result-time 2))
(run-selected-target!)
(make-targets!)
(check-equal? build-count 2)))
(lambda ()
(delete-directory/files tmp #:must-exist? #f)))