diff options
author | Paul Smith <psmith@gnu.org> | 2013-09-12 04:07:52 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-09-12 04:07:52 -0400 |
commit | deff9dacc97cc20015d3018992f2c77cb7fab102 (patch) | |
tree | 3da393310f9936a22aa211e6870a23e98b6fdebe /SMakefile.template | |
parent | 40a49f244da5b417af8bede84ac221cee2318d88 (diff) | |
download | gunmake-deff9dacc97cc20015d3018992f2c77cb7fab102.tar.gz |
Enhance the output sync mode.
Create a new file, output.c, and collect functions that generate output there.
We introduce a new global context specifying where output should go (to stdout
or to a sync file), and the lowest level output generator chooses where to
write output based on that context.
This allows us to set the context globally, and all operations that write
output (including functions like $(info ...) etc.) will use it.
Removed the "--trace=dir" capability. It was too confusing. If you have
directory tracking enabled then output sync will print the enter/leave message
for each synchronized block. If you don't want that, disable directory
tracking.
Diffstat (limited to 'SMakefile.template')
-rw-r--r-- | SMakefile.template | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/SMakefile.template b/SMakefile.template index d15f1f6..4dfe691 100644 --- a/SMakefile.template +++ b/SMakefile.template @@ -128,7 +128,8 @@ CTAGS = ctags -w objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o \ rule.o implicit.o default.o variable.o expand.o function.o \ vpath.o version.o ar.o arscan.o signame.o strcache.o hash.o \ - remote-$(REMOTE).o $(GLOB) $(GETOPT) $(ALLOCA) $(extras) $(guile) + output.o remote-$(REMOTE).o $(GLOB) $(GETOPT) $(ALLOCA) \ + $(extras) $(guile) srcs = $(srcdir)commands.c $(srcdir)job.c $(srcdir)dir.c \ $(srcdir)file.c $(srcdir)getloadavg.c $(srcdir)misc.c \ @@ -141,6 +142,7 @@ srcs = $(srcdir)commands.c $(srcdir)job.c $(srcdir)dir.c \ $(srcdir)signame.c $(srcdir)signame.h $(GETOPT_SRC) \ $(srcdir)commands.h $(srcdir)dep.h $(srcdir)file.h \ $(srcdir)job.h $(srcdir)makeint.h $(srcdir)rule.h \ + $(srcdir)output.c $(srcdir)output.h \ $(srcdir)variable.h $(ALLOCA_SRC) $(srcdir)config.h.in |