From b45c95ae01f5b478bfe306feeb64f3c054bc6f55 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 2 Jan 2025 01:06:03 +0100 Subject: [PATCH] build: Remove the .PRECIOUS target. Instruct make(1) to never remove any intermediate files by defining .SECONDARY. This way we don't need to maintain the list of precious targets. --- Makefile.real | 1 + m4/lls/makefile | 1 - yy/makefile | 3 --- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile.real b/Makefile.real index 513d4bbe..afcc5bfe 100644 --- a/Makefile.real +++ b/Makefile.real @@ -8,6 +8,7 @@ ifeq ("$(origin CC)", "default") endif .ONESHELL: .SHELLFLAGS := -ec +.SECONDARY: # don't remove intermediate files PACKAGE := paraslash DEFINES = \ diff --git a/m4/lls/makefile b/m4/lls/makefile index 0aa4744a..4df323c4 100644 --- a/m4/lls/makefile +++ b/m4/lls/makefile @@ -1,4 +1,3 @@ -.PRECIOUS: $(lls_suite_dir)/%.suite $(lsg_h) lls_m4_include_dir := $(lls_m4_dir)/include $(lls_suite_dir)/%.m4d: $(lls_m4_dir)/%.suite.m4 diff --git a/yy/makefile b/yy/makefile index e8492563..b8c9fa63 100644 --- a/yy/makefile +++ b/yy/makefile @@ -1,6 +1,3 @@ -.PRECIOUS: $(yy_build_dir)/%.flex.c $(yy_build_dir)/%.bison.c \ - $(yy_build_dir)/%.bison.h - $(yy_build_dir)/%.flex.c: $(yy_src_dir)/%.lex @[ -z "$(Q)" ] || echo 'FLEX $<' @$(FLEX) -o $@ $< -- 2.39.5