Split compile-runtime target into syntax-runtime and compile-runtime.
authorTaylor R Campbell <campbell@mumble.net>
Wed, 29 May 2013 14:06:05 +0000 (14:06 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Wed, 29 May 2013 14:24:50 +0000 (14:24 +0000)
Dependents of runtime-*.pkd for cref need only syntax-runtime.
Increases parallelism.

src/Makefile.in

index 4ede37d7e3320dc44e58c3409d5a47602758a0f6..2b803064d915679f9d697401f7e8eabe8e5e4f08 100644 (file)
@@ -127,18 +127,27 @@ compile-cref:
        echo '(begin (load "etc/compile.scm") (compile-dir "cref"))' \
        | '$(MIT_SCHEME_EXE)' --batch-mode
 
-.PHONY: compile-runtime
-compile-runtime: compile-cref
+.PHONY: syntax-runtime
+syntax-runtime: compile-cref
        (echo '(begin' && \
         echo '  (load "etc/compile.scm")' && \
         echo '  (with-working-directory-pathname "cref"' && \
         echo '    (lambda () (load "make")))' && \
-        echo '  (compile-dir "runtime"))') \
+        echo '  (with-working-directory-pathname "runtime"' && \
+        echo '    (lambda ()' && \
+        echo '      (load "runtime.sf")' && \
+        echo '      (echo-cref-output "runtime"))))') \
+       | '$(MIT_SCHEME_EXE)' --batch-mode
+
+.PHONY: compile-runtime
+compile-runtime: syntax-runtime
+       (echo '(with-working-directory-pathname "runtime"' && \
+        echo '  (lambda () (load "runtime.cbf")))') \
        | '$(MIT_SCHEME_EXE)' --batch-mode
 
 .PHONY: compile-sf
 compile-sf: compile-cref
-compile-sf: compile-runtime
+compile-sf: syntax-runtime
        (echo '(begin' && \
         echo '  (load "etc/compile.scm")' && \
         echo '  (with-working-directory-pathname "cref"' && \
@@ -148,7 +157,7 @@ compile-sf: compile-runtime
 
 .PHONY: compile-star-parser
 compile-star-parser: compile-cref
-compile-star-parser: compile-runtime
+compile-star-parser: syntax-runtime
        (echo '(begin' && \
         echo '  (load "etc/compile.scm")' && \
         echo '  (with-working-directory-pathname "cref"' && \