From a6eae16f672eba5b33e783481d6a9f94502b50e0 Mon Sep 17 00:00:00 2001 From: Julien Rioux Date: Tue, 21 Feb 2012 05:38:10 -0500 Subject: [PATCH] Build: Remove .PRECIOUS flags. Since 820c7ff5d380e8ca52057717ab3176b5e40107fd all files are treated as .SECONDARY files. This means that `make' will not delete files that it identifies as intermediate files, which would be it's default behavior otherwise. Currently, lexer and parser files, some font files, and some postscript files are treated as .PRECIOUS in the build. This means that `make' will never delete these files, even when the rule for creating them failed. It seems that these files were flagged as .PRECIOUS in order to keep them around after a successful build, preventing `make' from removing them. But treating these files as .SECONDARY is sufficient for this purpose. The .PRECIOUS flag introduces potential problems that we would rather avoid. --- lily/GNUmakefile | 6 ------ make/mutopia-targets.make | 3 --- mf/GNUmakefile | 2 -- 3 files changed, 11 deletions(-) diff --git a/lily/GNUmakefile b/lily/GNUmakefile index ea7785b947..1872af74ce 100644 --- a/lily/GNUmakefile +++ b/lily/GNUmakefile @@ -86,9 +86,3 @@ $(outdir)/relocate.o: $(outdir)/version.hh $(outdir)/warn-scheme.o: $(outdir)/version.hh local-po: $(outdir)/parser.cc - -# ugh. For --srcdir builds, these must exist to satisfy their broken -# lexer.dep and parser.dep file entries. -ifneq ($(configure-srcdir),.) -.PRECIOUS: $(outdir)/lexer.cc $(outdir)/parser.cc -endif diff --git a/make/mutopia-targets.make b/make/mutopia-targets.make index 4eeb80ed0c..0d49357e46 100644 --- a/make/mutopia-targets.make +++ b/make/mutopia-targets.make @@ -1,8 +1,5 @@ .PHONY: download mutopia png ps scores tar -.PRECIOUS: $(outdir)/%.ps $(outdir)/%-book.ps -.PRECIOUS: $(outdir)-letter/%.ps - all: diff --git a/mf/GNUmakefile b/mf/GNUmakefile index 97bcd42ef4..ad397159c3 100644 --- a/mf/GNUmakefile +++ b/mf/GNUmakefile @@ -163,8 +163,6 @@ $(PE_SCRIPTS): $(buildscript-dir)/gen-emmentaler-scripts ALL_FONTS = $(FETA_FONTS) PFB_FILES = $(ALL_FONTS:%=$(outdir)/%.pfb) -.PRECIOUS: $(PFB_FILES) - # Make tfm files first, log files last, # so that normally log files aren't made twice -- 2.39.2