Makefile.am: Add .DELETE_ON_ERROR target.

* Makefile.am: Add `.DELETE_ON_ERROR` special target; both GNU and
  FreeBSD make(1)s support it so maybe it will be portable enough.  This
  avoids, among other problems, a target appearing falsely up-to-date
  (often as an empty file) when the troff process generating it
  experiences an assertion failure.
This commit is contained in:
G. Branden Robinson 2021-09-15 11:08:55 +10:00
parent 941e2b5d5f
commit 71e31708e6
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2021-09-15 G. Branden Robinson <g.branden.robinson@gmail.com>
* Makefile.am: Add `.DELETE_ON_ERROR` special target; both GNU
and FreeBSD make(1)s support it so maybe it will be portable
enough. This avoids, among other problems, a target appearing
falsely up-to-date (often as an empty file) when the troff
process generating it experiences an assertion failure.
2021-09-12 G. Branden Robinson <g.branden.robinson@gmail.com>
Since June 1991 if not earlier, groff (technically, the refer,

View File

@ -719,6 +719,8 @@ BUILT_SOURCES += defs.h
# Force generation of test-groff even though we don't ship it.
BUILT_SOURCES += test-groff
.DELETE_ON_ERROR:
# if there is a name prefix we install the man pages by hand
all: generate_man_files
install-data-hook: install-prefix-man