2005-02-04 03:05:55 -05:00
|
|
|
(define (make rcs targets . maybe-arg)
|
|
|
|
(let-optionals maybe-arg ((init-state (list)))
|
|
|
|
(let* ((rules (rcs->rules rcs))
|
|
|
|
(rule-set (rules->rule-set rules))
|
|
|
|
(target-rules (map (lambda (t) (lookup-rule t rules))
|
|
|
|
targets)))
|
2005-02-14 02:35:46 -05:00
|
|
|
(map (lambda (t)
|
|
|
|
(rule-make t init-state rule-set))
|
|
|
|
target-rules))))
|