From 1ea5f72496f4b8d03acdc554f804d0c2b6552c82 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 11 May 2026 13:12:10 +0200 Subject: [PATCH] Makefile.in: 'version_base.h' must not be deleted when running `make clean` Since this file, just like 'config.h', is generated by autoconf, it should only be deleted in the `distclean` target. Also since the project does not currently use automake, manual maintenance of the timestamp file for 'version_base.h' is required. Fixup for commit 10b5f70e7 from #1331 --- Makefile.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 751334d6a..9779cc1d5 100644 --- a/Makefile.in +++ b/Makefile.in @@ -169,7 +169,7 @@ clean: rm -f ivl.exp rm -f iverilog_man.ps iverilog_man.pdf iverilog_man_$(VERSION_MAJOR)_$(VERSION_MINOR).pdf rm -f parse.output syn-rules.output dosify$(BUILDEXT) ivl@EXEEXT@ check.vvp - rm -f lexor_keyword.cc libivl.a libvpi.a syn-rules.cc version_base.h + rm -f lexor_keyword.cc libivl.a libvpi.a syn-rules.cc rm -rf dep distclean: clean @@ -178,6 +178,7 @@ distclean: clean rm -f Makefile config.status config.log config.cache rm -f stamp-config-h config.h rm -f stamp-_pli_types-h _pli_types.h + rm -f stamp-version_base-h version_base.h ifneq (@srcdir@,.) rm -f version_tag.h check.conf rmdir $(SUBDIRS) $(NOTUSED) @@ -215,6 +216,11 @@ stamp-_pli_types-h: $(srcdir)/_pli_types.h.in config.status ./config.status _pli_types.h _pli_types.h: stamp-_pli_types-h +stamp-version_base-h: $(srcdir)/version_base.h.in config.status + @rm -f $@ + ./config.status version_base.h +version_base.h: stamp-version_base-h + $(srcdir)/configure: $(srcdir)/configure.ac $(srcdir)/aclocal.m4 cd $(srcdir) && autoconf