diff options
author | Steve McIntyre <steve@einval.com> | 2018-06-10 19:30:04 +0100 |
---|---|---|
committer | Steve McIntyre <steve@einval.com> | 2018-06-10 19:30:04 +0100 |
commit | 1714c6efd98fafeddf5189f68841acfcca607b3b (patch) | |
tree | 8aeaab41ef14faa7d05125dba149e502f3a665b2 /chinese/Make.lang | |
parent | 03bccc276e67c0a9fb10424a55133b33421231f2 (diff) |
Add an option to stop make on various errors
By default, many of the processes in the webwml build are run with a
leading "-" so that make will ignore errors. Replace *most* of
those (*not* including rm calls for make clean) with $(IGNORE) and add
a conditional to Makefile.common to control what $(IGNORE) does.
By default, things will work just the same as before. If you set
STRICT_ERROR_CHECKS=1 in Makefile.common, the build will now be much
more strict. Most people can just ignore the change to add this
option, but it's helpful when debugging the scripts to have things
fail cleanly and quickly.
Diffstat (limited to 'chinese/Make.lang')
-rw-r--r-- | chinese/Make.lang | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chinese/Make.lang b/chinese/Make.lang index c68f2b451a7..9deca16ac92 100644 --- a/chinese/Make.lang +++ b/chinese/Make.lang @@ -73,17 +73,17 @@ $(TOHK): $(TOTW) $(HTMLDIR)/%.zh-cn.html: %.zh-cn.html @test -d $(HTMLDIR) || mkdir -m g+w -p $(HTMLDIR) @echo copying $(@F) to $(HTMLDIR) - -@install -m 664 -p $(@F) $(HTMLDIR) + $(IGNORE)@install -m 664 -p $(@F) $(HTMLDIR) $(HTMLDIR)/%.zh-hk.html: %.zh-hk.html @test -d $(HTMLDIR) || mkdir -m g+w -p $(HTMLDIR) @echo copying $(@F) to $(HTMLDIR) - -@install -m 664 -p $(@F) $(HTMLDIR) + $(IGNORE)@install -m 664 -p $(@F) $(HTMLDIR) $(HTMLDIR)/%.zh-tw.html: %.zh-tw.html @test -d $(HTMLDIR) || mkdir -m g+w -p $(HTMLDIR) @echo copying $(@F) to $(HTMLDIR) - -@install -m 664 -p $(@F) $(HTMLDIR) + $(IGNORE)@install -m 664 -p $(@F) $(HTMLDIR) # Create %.html -> %.zh-tw.html symlink if no English version of %.wml exists @if [ ! -f "$(WMLBASE)/../english/$(CUR_DIR)/$(*F).wml" ]; then \ echo "Making a link $(@D)/$(*F).html -> $(@F)"; \ |