aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/News
diff options
context:
space:
mode:
authorSteve McIntyre <steve@einval.com>2018-06-10 19:30:04 +0100
committerSteve McIntyre <steve@einval.com>2018-06-10 19:30:04 +0100
commit1714c6efd98fafeddf5189f68841acfcca607b3b (patch)
tree8aeaab41ef14faa7d05125dba149e502f3a665b2 /chinese/News
parent03bccc276e67c0a9fb10424a55133b33421231f2 (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/News')
-rw-r--r--chinese/News/weekly/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/chinese/News/weekly/Makefile b/chinese/News/weekly/Makefile
index 0be17bf0589..980a8f8307f 100644
--- a/chinese/News/weekly/Makefile
+++ b/chinese/News/weekly/Makefile
@@ -14,18 +14,18 @@ STRIP_INITIAL_BLANK_LINE := $(CURDIR)/$(STRIP_INITIAL_BLANK_LINE)
$(HTMLDIR)/%.zh-cn.html: %.zh-cn.html
@test -d $(@D) || mkdir -m g+w -p $(@D)
@echo copying $(@F) to $(@D)
- -@install -m 664 -p $(<) $(@D)
+ $(IGNORE)@install -m 664 -p $(<) $(@D)
$(HTMLDIR)/%.zh-hk.html: %.zh-hk.html
@test -d $(@D) || mkdir -m g+w -p $(@D)
@echo copying $(@F) to $(@D)
- -@install -m 664 -p $(<) $(@D)
+ $(IGNORE)@install -m 664 -p $(<) $(@D)
$(HTMLDIR)/%.zh-tw.html: %.zh-tw.html
@test -d $(@D) || mkdir -m g+w -p $(@D)
@echo copying $(@F) to $(@D)
- -@install -m 664 -p $(<) $(@D)
+ $(IGNORE)@install -m 664 -p $(<) $(@D)
clean::
- -find . -type f -name \*.$(LANGUAGE)-??.html | xargs rm -f
+ $(IGNORE)find . -type f -name \*.$(LANGUAGE)-??.html | xargs rm -f
index.zh-cn.html index.zh-hk.html index.zh-tw.html: index.wml \
$(wildcard $(CUR_YEAR)/*/index.wml) \

© 2014-2024 Faster IT GmbH | imprint | privacy policy