From 62be1f714292a609551fb5d29a8964afb6e1c072 Mon Sep 17 00:00:00 2001 From: jottbee Date: Tue, 15 Feb 2005 18:59:37 +0000 Subject: [PATCH] added automatic variables in (currently only) gnu style. added switch between make-rule-cml (file make-rule) and make-rule-no-cml --- autovars.scm | 160 +++++++++++++++++++++++++++++++++++++++++++++++++++ packages.scm | 81 ++++++++++++++++++++------ 2 files changed, 222 insertions(+), 19 deletions(-) create mode 100644 autovars.scm diff --git a/autovars.scm b/autovars.scm new file mode 100644 index 0000000..143daa1 --- /dev/null +++ b/autovars.scm @@ -0,0 +1,160 @@ +(define fluid-$@ (make-preserved-thread-fluid (list))) +(define fluid-$< (make-preserved-thread-fluid (list))) +(define fluid-$? (make-preserved-thread-fluid (list))) +(define fluid-$^ (make-preserved-thread-fluid (list))) +(define fluid-$+ (make-preserved-thread-fluid (list))) +(define fluid-$* (make-preserved-thread-fluid (list))) +(define fluid-$@/ (make-preserved-thread-fluid (list))) +(define fluid-/$@ (make-preserved-thread-fluid (list))) +(define fluid-$*/ (make-preserved-thread-fluid (list))) +(define fluid-/$* (make-preserved-thread-fluid (list))) +(define fluid-$list + dfs dfs-dag-show - dfs)) + sort)) (define-structure dfs dfs-interface (open scheme-with-scsh @@ -238,7 +229,7 @@ (files misc)) (define-interface templates-interface - (export make-rule-build-func + (export make-file-build-func make-md5-build-func make-always-build-func make-once-build-func @@ -249,10 +240,60 @@ (define-structure templates templates-interface (open scheme-with-scsh + autovars srfi-1 + big-util srfi-13) (files templates)) +(define-interface autovars-interface + (export bind-fluids-gnu + fluid-$@ + fluid-$< + fluid-$? + fluid-$^ + fluid-$+ + fluid-$* + fluid-$@/ + fluid-/$@ + fluid-$*/ + fluid-/$* + fluid-$