changed rule-node/make analogously to make-rule.
This commit is contained in:
parent
b4382fa7b7
commit
727d9bdf0f
|
@ -45,14 +45,21 @@
|
||||||
(rule-make prereq init-state rule-set)
|
(rule-make prereq init-state rule-set)
|
||||||
(error "prerequisite is not in rule-set!")))
|
(error "prerequisite is not in rule-set!")))
|
||||||
(rule-prereqs rule)))
|
(rule-prereqs rule)))
|
||||||
(wants-build?-result (apply (rule-wants-build? rule)
|
(wants-build?-result (if (null? prereqs-results)
|
||||||
(append pre-results (list init-state))))
|
((rule-wants-build? rule) init-state)
|
||||||
|
(apply (rule-wants-build? rule)
|
||||||
|
(append prereqs-results
|
||||||
|
(list init-state)))))
|
||||||
(build-required? (car wants-build?-result))
|
(build-required? (car wants-build?-result))
|
||||||
(cooked-state (cdr wants-build?-result)))
|
(cooked-state (cdr wants-build?-result)))
|
||||||
(if build-required?
|
(if build-required?
|
||||||
(make-rule-result wants-build?-result
|
(if (null? prereqs-results)
|
||||||
(apply (rule-build-func rule)
|
(make-rule-result wants-build?-result
|
||||||
(append (list build-required?)
|
((rule-build-func rule)
|
||||||
pre-results
|
build-required? cooked-state))
|
||||||
(list cooked-state))))
|
(make-rule-result wants-build?-result
|
||||||
|
(apply (rule-build-func rule)
|
||||||
|
(append (list build-required?)
|
||||||
|
prereqs-results
|
||||||
|
(list cooked-state)))))
|
||||||
(make-rule-result wants-build?-result #f))))
|
(make-rule-result wants-build?-result #f))))
|
||||||
|
|
Loading…
Reference in New Issue