>From 847e0bdc2f8e23514faef42e9317160fd24605c3 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 22 Jul 2024 03:09:32 +0200 Subject: [PATCH] build: Fix failure of "./configure; make dist". * Makefile.am (BUILT_SOURCES): Add doc/m4.1, checks-files. (doc/m4.1): New target. (checks-files): New phony target. --- Makefile.am | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index fbc32911..99a3c8cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ ## Makefile.am - template for generating Makefile via Automake ## -## Copyright (C) 2000-2001, 2003-2014, 2016-2017, 2020-2023 Free +## Copyright (C) 2000-2001, 2003-2014, 2016-2017, 2020-2024 Free ## Software Foundation, Inc. ## ## This file is part of GNU M4. @@ -64,6 +64,19 @@ BUILT_SOURCES = $(top_srcdir)/.version $(top_srcdir)/.version: echo $(VERSION) > $@-t && mv $@-t $@ +# Ensure that the manual page is up-to-date when "make dist" runs. +BUILT_SOURCES += doc/m4.1 +doc/m4.1: $(top_srcdir)/src/m4.c + $(AM_V_GEN)(cd lib && $(MAKE) $(AM_MAKEFLAGS)) \ + && (cd src && $(MAKE) $(AM_MAKEFLAGS) m4$(EXEEXT)) \ + && (cd doc && $(MAKE) $(AM_MAKEFLAGS) m4.1) + +# Ensure that the checks/*[0-9][0-9][0-9].* files exist when "make dist" runs. +BUILT_SOURCES += checks-files +.PHONY: checks-files +checks-files: + cd checks && $(MAKE) $(AM_MAKEFLAGS) + # Arrange so that .tarball-version appears only in the distribution # tarball, and never in a checked-out repository. dist-hook: gen-ChangeLog -- 2.34.1