From bb31a0d83b5fe72fad91111c68ea283da02f6e58 Mon Sep 17 00:00:00 2001 From: Takahiro Ueda Date: Sat, 22 Aug 2026 21:13:12 +0900 Subject: [PATCH] build(fix): avoid failure when running "make clean" twice Also remove redundant clean-local from .PHONY. --- doc/Makefile.am | 5 ++--- doc/devref/Makefile.am | 2 +- doc/manual/Makefile.am | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index bc158506..c9752c84 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,10 +1,9 @@ SUBDIRS = doxygen manual devref dist_man1_MANS = form.1 -.PHONY: clean-local update_version_man +.PHONY: update_version_man -clean-local: - rm form.1 +CLEANFILES = form.1 form.1: update_version_man $(UPDATE_VERSION_MAN) diff --git a/doc/devref/Makefile.am b/doc/devref/Makefile.am index 6b230451..c408421e 100644 --- a/doc/devref/Makefile.am +++ b/doc/devref/Makefile.am @@ -12,7 +12,7 @@ TEXFILES = $(TEXSRC) $(MAIN).tex version.tex EXTRA_DIST = $(TEXSRC) -.PHONY: dvi latex2html html ps pdf clean-local update_version_tex +.PHONY: dvi latex2html html ps pdf update_version_tex # NOTE: htlatex invalidate .aux, .idx, .dvi files. HTMLCLEANFILES = idxmake.dvi idxmake.log $(MAIN).4ct $(MAIN).4dx $(MAIN).4ix \ diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am index 7ac41c6f..ccd944b0 100644 --- a/doc/manual/Makefile.am +++ b/doc/manual/Makefile.am @@ -29,7 +29,7 @@ TEXFILES = $(TEXSRC) $(MAIN).tex version.tex EXTRA_DIST = $(TEXSRC) -.PHONY: dvi latex2html html ps pdf clean-local update_version_tex +.PHONY: dvi latex2html html ps pdf update_version_tex # NOTE: htlatex invalidate .aux, .idx, .dvi files. HTMLCLEANFILES = idxmake.dvi idxmake.log $(MAIN).4ct $(MAIN).4dx $(MAIN).4ix \